Skip to content

Commit a8f5add

Browse files
author
Alexander Lippling
committed
Cleanup
Change-Id: Ia49152c7d120dfa4261b1b4d4db28124e6da8363
1 parent 213ee4d commit a8f5add

File tree

8 files changed

+88
-10
lines changed

8 files changed

+88
-10
lines changed

src/main/java/com/sap/prd/mobile/ios/mios/xcodeprojreader/ProjectFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public ProjectFile(Plist plist)
3434
super(null, plist.getDict());
3535
this.plist = plist;
3636
}
37-
37+
3838
public Plist getPlist()
3939
{
4040
return plist;

src/main/java/com/sap/prd/mobile/ios/mios/xcodeprojreader/buildphases/BuildPhase.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525

2626
public abstract class BuildPhase extends Element
2727
{
28-
28+
2929
private final static Package buildPhasesPackage = BuildPhase.class.getPackage();
30-
30+
3131
public BuildPhase(ProjectFile projectFile)
3232
{
3333
this(projectFile, projectFile.createDict());
@@ -43,12 +43,14 @@ public static BuildPhase create(ProjectFile projectFile, Dict dict)
4343
final String isa = dict.getString("isa");
4444
try {
4545
final Class<?> clazz = Class.forName(buildPhasesPackage.getName() + "." + isa);
46-
return (BuildPhase)clazz.getDeclaredConstructor(new Class[] {ProjectFile.class, Dict.class}).newInstance(projectFile, dict);
46+
return (BuildPhase) clazz.getDeclaredConstructor(new Class[] { ProjectFile.class, Dict.class }).newInstance(
47+
projectFile, dict);
4748
}
4849
catch (RuntimeException e) {
4950
throw e;
50-
} catch(Exception e) {
51-
throw new RuntimeException("Could not instanciate build phase for type (isa) '" + isa + "'.", e);
51+
}
52+
catch (Exception e) {
53+
throw new RuntimeException("Could not instanciate build phase for type (isa) '" + isa + "'.", e);
5254
}
5355
}
5456
}

src/main/java/com/sap/prd/mobile/ios/mios/xcodeprojreader/jaxb/JAXBFalse.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* #%L
3+
* xcode-project-reader
4+
* %%
5+
* Copyright (C) 2012 SAP AG
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
120
package com.sap.prd.mobile.ios.mios.xcodeprojreader.jaxb;
221

322
import javax.xml.bind.annotation.XmlType;

src/main/java/com/sap/prd/mobile/ios/mios/xcodeprojreader/jaxb/JAXBPlistElementConverter.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* #%L
3+
* xcode-project-reader
4+
* %%
5+
* Copyright (C) 2012 SAP AG
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
120
package com.sap.prd.mobile.ios.mios.xcodeprojreader.jaxb;
221

322
import com.sap.prd.mobile.ios.mios.xcodeprojreader.Array;

src/main/java/com/sap/prd/mobile/ios/mios/xcodeprojreader/jaxb/JAXBTrue.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* #%L
3+
* xcode-project-reader
4+
* %%
5+
* Copyright (C) 2012 SAP AG
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
120
package com.sap.prd.mobile.ios.mios.xcodeprojreader.jaxb;
221

322
import javax.xml.bind.annotation.XmlType;

src/test/java/com/sap/prd/mobile/ios/mios/xcodeprojreader/DataTypesTest.java

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* #%L
3+
* xcode-project-reader
4+
* %%
5+
* Copyright (C) 2012 SAP AG
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
120
package com.sap.prd.mobile.ios.mios.xcodeprojreader;
221

322
import static org.junit.Assert.assertEquals;
@@ -137,7 +156,7 @@ public void getOrCreateAndSetArrayInDict()
137156
assertEquals(7, array.size());
138157
assertEquals("value", array.get(0));
139158
}
140-
159+
141160
@Test
142161
public void getOrCreateAndSetDictInDict()
143162
{

src/test/java/com/sap/prd/mobile/ios/mios/xcodeprojreader/ProjectFileTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static ProjectFile load() throws Exception
4545
Plist plist = parser.load(fileName);
4646
return new ProjectFile(plist);
4747
}
48-
48+
4949
@Test
5050
public void plist() throws Exception
5151
{
@@ -54,7 +54,7 @@ public void plist() throws Exception
5454
Plist plist = parser.load(fileName);
5555
assertSame(plist, new ProjectFile(plist).getPlist());
5656
}
57-
57+
5858
@Test
5959
public void version()
6060
{

src/test/java/com/sap/prd/mobile/ios/mios/xcodeprojreader/UsageExamples.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public void usage() throws Exception
8484
phase2.setDefaultValues();
8585
phase2.setShellScript("env > test.txt");
8686
buildPhases.add(phase2);
87-
87+
8888
//parser.save(plist, JAXBPlistParserTest.fileName);
8989
}
9090
}

0 commit comments

Comments
 (0)