LCOV - code coverage report
Current view: top level - common - PluginData.java (source / functions) Hit Total Coverage
Test: _coverage_report.dat Lines: 0 12 0.0 %
Date: 2022-11-19 15:00:39 Functions: 0 3 0.0 %

          Line data    Source code
       1             : // Copyright (C) 2013 The Android Open Source Project
       2             : //
       3             : // Licensed under the Apache License, Version 2.0 (the "License");
       4             : // you may not use this file except in compliance with the License.
       5             : // You may obtain a copy of the License at
       6             : //
       7             : // http://www.apache.org/licenses/LICENSE-2.0
       8             : //
       9             : // Unless required by applicable law or agreed to in writing, software
      10             : // distributed under the License is distributed on an "AS IS" BASIS,
      11             : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      12             : // See the License for the specific language governing permissions and
      13             : // limitations under the License.
      14             : 
      15             : package com.google.gerrit.common;
      16             : 
      17             : import java.nio.file.Path;
      18             : import java.util.Objects;
      19             : 
      20             : public class PluginData {
      21             :   public final String name;
      22             :   public final String version;
      23             :   public final Path pluginPath;
      24             : 
      25           0 :   public PluginData(String name, String version, Path pluginPath) {
      26           0 :     this.name = name;
      27           0 :     this.version = version;
      28           0 :     this.pluginPath = pluginPath;
      29           0 :   }
      30             : 
      31             :   @Override
      32             :   public boolean equals(Object obj) {
      33           0 :     if (obj instanceof PluginData) {
      34           0 :       PluginData o = (PluginData) obj;
      35           0 :       return Objects.equals(name, o.name)
      36           0 :           && Objects.equals(version, o.version)
      37           0 :           && Objects.equals(pluginPath, o.pluginPath);
      38             :     }
      39           0 :     return super.equals(obj);
      40             :   }
      41             : 
      42             :   @Override
      43             :   public int hashCode() {
      44           0 :     return Objects.hash(name, version, pluginPath);
      45             :   }
      46             : }

Generated by: LCOV version 1.16+git.20220603.dfeb750