cdt/cdt_5_0_x/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/LibraryEntry.java
changeset 26 8717e2008e00
parent 0 0e6d23e2b466
child 27 57a05dd59a20
equal deleted inserted replaced
25:68aa5b0d78d4 26:8717e2008e00
   131 			return true;
   131 			return true;
   132 		}
   132 		}
   133 		return super.equals(obj);
   133 		return super.equals(obj);
   134 	}
   134 	}
   135 
   135 
       
   136 	@Override
       
   137 	public int hashCode() {
       
   138 		final int prime = 31;
       
   139 		int result = super.hashCode();
       
   140 		result = prime * result
       
   141 				+ ((libraryPath == null) ? 0 : libraryPath.hashCode());
       
   142 		result = prime
       
   143 				* result
       
   144 				+ ((sourceAttachmentPath == null) ? 0 : sourceAttachmentPath
       
   145 						.hashCode());
       
   146 		result = prime
       
   147 				* result
       
   148 				+ ((sourceAttachmentPrefixMapping == null) ? 0
       
   149 						: sourceAttachmentPrefixMapping.hashCode());
       
   150 		result = prime
       
   151 				* result
       
   152 				+ ((sourceAttachmentRootPath == null) ? 0
       
   153 						: sourceAttachmentRootPath.hashCode());
       
   154 		return result;
       
   155 	}
       
   156 
   136 	public IPath getFullLibraryPath() {
   157 	public IPath getFullLibraryPath() {
   137 		IPath p;
   158 		IPath p;
   138 		IPath lib = getLibraryPath();
   159 		IPath lib = getLibraryPath();
   139 		if (!basePath.isEmpty()) {
   160 		if (!basePath.isEmpty()) {
   140 			IPath loc = basePath;
   161 			IPath loc = basePath;