Normalized indentation.

This commit is contained in:
Achim D. Brucker 2016-10-30 16:12:19 +00:00
parent 86b16bd570
commit 30c886d95d
4 changed files with 80 additions and 80 deletions

View File

@ -41,7 +41,7 @@ public class PlugInUtil {
} }
public static void populateScope(JavaSourceAnalysisEngine engine, Collection<String> sources, List<String> libs) { public static void populateScope(JavaSourceAnalysisEngine engine, Collection<String> sources, List<String> libs) {
if (null != libs ){ if (null != libs ) {
boolean foundLib = false; boolean foundLib = false;
for (String lib : libs) { for (String lib : libs) {
File libFile = new File(lib); File libFile = new File(lib);
@ -75,9 +75,9 @@ public class PlugInUtil {
public static JavaSourceAnalysisEngine public static JavaSourceAnalysisEngine
createECJJavaEngine(Collection<String> sources, List<String> libs, final String [] entryPoints) { createECJJavaEngine(Collection<String> sources, List<String> libs, final String [] entryPoints) {
JavaSourceAnalysisEngine engine=null; JavaSourceAnalysisEngine engine=null;
if(null == entryPoints){ if(null == entryPoints) {
engine = new ECJJavaSourceAnalysisEngine(); engine = new ECJJavaSourceAnalysisEngine();
}else{ } else {
engine = new ECJJavaSourceAnalysisEngine() { engine = new ECJJavaSourceAnalysisEngine() {
@Override @Override
protected Iterable<Entrypoint> makeDefaultEntrypoints(AnalysisScope scope, IClassHierarchy cha) { protected Iterable<Entrypoint> makeDefaultEntrypoints(AnalysisScope scope, IClassHierarchy cha) {

View File

@ -19,25 +19,25 @@ public class SSAInstructionKey {
this.key = key; this.key = key;
} }
public int hashCode(){ public int hashCode() {
return key.hashCode(); return key.hashCode();
} }
public String toString(){ public String toString() {
if (null == key){ if (null == key) {
return "null (key)"; return "null (key)";
}else{ } else {
return key.toString(); return key.toString();
} }
} }
public boolean equals(Object obj){ public boolean equals(Object obj) {
if (null == obj){ if (null == obj) {
return false; return false;
}else{ } else {
if (obj instanceof SSAInstructionKey){ if (obj instanceof SSAInstructionKey) {
return key == ((SSAInstructionKey) obj).key; return key == ((SSAInstructionKey) obj).key;
}else{ } else {
return false; return false;
} }
} }