Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2018-11-20 16:20:42 +0000
committerJonah Graham2018-11-22 21:47:02 +0000
commit170e654b4796bad1453ae85a427b97317d67a69a (patch)
tree6ca9b8a8fedd5fd25f97eb79c408312e256ff981 /core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/CLibraryFileEntry.java
parent35996a5c5ca5c254959ba48241eaada6dbf8628d (diff)
downloadorg.eclipse.cdt-170e654b4796bad1453ae85a427b97317d67a69a.tar.gz
org.eclipse.cdt-170e654b4796bad1453ae85a427b97317d67a69a.tar.xz
org.eclipse.cdt-170e654b4796bad1453ae85a427b97317d67a69a.zip
Bug 540373: Cleanup: Format & Remove trailing whitespace
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Format source code - Remove trailing white spaces on all lines and completing the wizard Change-Id: I63685372c6bcc67719bcf145123bcb72e5b00394
Diffstat (limited to 'core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/CLibraryFileEntry.java')
-rw-r--r--core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/CLibraryFileEntry.java46
1 files changed, 22 insertions, 24 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/CLibraryFileEntry.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/CLibraryFileEntry.java
index bb106076739..07b39d8700f 100644
--- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/CLibraryFileEntry.java
+++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/CLibraryFileEntry.java
@@ -67,37 +67,34 @@ public final class CLibraryFileEntry extends ACPathEntry implements ICLibraryFil
this(rc, flags, null, null, null);
}
- public CLibraryFileEntry(String name, int flags,
- IPath sourceAttachmentPath,
- IPath sourceAttachmentRootPath,
+ public CLibraryFileEntry(String name, int flags, IPath sourceAttachmentPath, IPath sourceAttachmentRootPath,
IPath sourceAttachmentPrefixMapping) {
super(name, flags);
fSourceAttachmentPath = sourceAttachmentPath;
fSourceAttachmentRootPath = sourceAttachmentRootPath != null ? sourceAttachmentRootPath : Path.EMPTY;
- fSourceAttachmentPrefixMapping = sourceAttachmentPrefixMapping != null ? sourceAttachmentPrefixMapping : Path.EMPTY;
+ fSourceAttachmentPrefixMapping = sourceAttachmentPrefixMapping != null ? sourceAttachmentPrefixMapping
+ : Path.EMPTY;
}
- public CLibraryFileEntry(IPath location, int flags,
- IPath sourceAttachmentPath,
- IPath sourceAttachmentRootPath,
+ public CLibraryFileEntry(IPath location, int flags, IPath sourceAttachmentPath, IPath sourceAttachmentRootPath,
IPath sourceAttachmentPrefixMapping) {
super(location, flags);
fSourceAttachmentPath = sourceAttachmentPath;
fSourceAttachmentRootPath = sourceAttachmentRootPath != null ? sourceAttachmentRootPath : Path.EMPTY;
- fSourceAttachmentPrefixMapping = sourceAttachmentPrefixMapping != null ? sourceAttachmentPrefixMapping : Path.EMPTY;
+ fSourceAttachmentPrefixMapping = sourceAttachmentPrefixMapping != null ? sourceAttachmentPrefixMapping
+ : Path.EMPTY;
}
- public CLibraryFileEntry(IFile rc, int flags,
- IPath sourceAttachmentPath,
- IPath sourceAttachmentRootPath,
+ public CLibraryFileEntry(IFile rc, int flags, IPath sourceAttachmentPath, IPath sourceAttachmentRootPath,
IPath sourceAttachmentPrefixMapping) {
super(rc, flags);
fSourceAttachmentPath = sourceAttachmentPath;
fSourceAttachmentRootPath = sourceAttachmentRootPath != null ? sourceAttachmentRootPath : Path.EMPTY;
- fSourceAttachmentPrefixMapping = sourceAttachmentPrefixMapping != null ? sourceAttachmentPrefixMapping : Path.EMPTY;
+ fSourceAttachmentPrefixMapping = sourceAttachmentPrefixMapping != null ? sourceAttachmentPrefixMapping
+ : Path.EMPTY;
}
@Override
@@ -130,39 +127,40 @@ public final class CLibraryFileEntry extends ACPathEntry implements ICLibraryFil
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((fSourceAttachmentPath == null) ? 0 : fSourceAttachmentPath.hashCode());
- result = prime * result + ((fSourceAttachmentPrefixMapping == null) ? 0 : fSourceAttachmentPrefixMapping.hashCode());
+ result = prime * result
+ + ((fSourceAttachmentPrefixMapping == null) ? 0 : fSourceAttachmentPrefixMapping.hashCode());
result = prime * result + ((fSourceAttachmentRootPath == null) ? 0 : fSourceAttachmentRootPath.hashCode());
return result;
}
@Override
public boolean equals(Object other) {
- if(other == this)
+ if (other == this)
return true;
- if(!super.equals(other))
+ if (!super.equals(other))
return false;
- return sourceAttachmentSettingsEqual((CLibraryFileEntry)other);
+ return sourceAttachmentSettingsEqual((CLibraryFileEntry) other);
}
@Override
public boolean equalsByContents(ICSettingEntry entry) {
- if(entry == this)
+ if (entry == this)
return true;
- if(!super.equalsByContents(entry))
+ if (!super.equalsByContents(entry))
return false;
- return sourceAttachmentSettingsEqual((CLibraryFileEntry)entry);
+ return sourceAttachmentSettingsEqual((CLibraryFileEntry) entry);
}
- private boolean sourceAttachmentSettingsEqual(CLibraryFileEntry otherEntry){
- if(!CDataUtil.objectsEqual(fSourceAttachmentPath, otherEntry.fSourceAttachmentPath))
+ private boolean sourceAttachmentSettingsEqual(CLibraryFileEntry otherEntry) {
+ if (!CDataUtil.objectsEqual(fSourceAttachmentPath, otherEntry.fSourceAttachmentPath))
return false;
- if(!CDataUtil.objectsEqual(fSourceAttachmentRootPath, otherEntry.fSourceAttachmentRootPath))
+ if (!CDataUtil.objectsEqual(fSourceAttachmentRootPath, otherEntry.fSourceAttachmentRootPath))
return false;
- if(!CDataUtil.objectsEqual(fSourceAttachmentPrefixMapping, otherEntry.fSourceAttachmentPrefixMapping))
+ if (!CDataUtil.objectsEqual(fSourceAttachmentPrefixMapping, otherEntry.fSourceAttachmentPrefixMapping))
return false;
return true;
}
@@ -171,7 +169,7 @@ public final class CLibraryFileEntry extends ACPathEntry implements ICLibraryFil
protected String contentsToString() {
String result = super.contentsToString();
- if(fSourceAttachmentPath != null){
+ if (fSourceAttachmentPath != null) {
StringBuilder buf = new StringBuilder();
buf.append(result);
buf.append(" ; srcPath=").append(fSourceAttachmentPath); //$NON-NLS-1$

Back to the top