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

View File

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