Skip to content

Commit 00993c2

Browse files
committed
Formatting
1 parent eab24cc commit 00993c2

File tree

11 files changed

+60
-18
lines changed

11 files changed

+60
-18
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<fileset-config file-format-version="1.2.0" simple-config="false">
3+
<local-check-config description="" location="/com.oracle.graal.python/.checkstyle_checks.xml" name="Checks" type="project">
4+
<additional-data name="protect-config-file" value="false"/>
5+
</local-check-config>
6+
<fileset check-config-name="Checks" enabled="true" local="true" name="all">
7+
<file-match-pattern include-pattern="true" match-pattern=".*\.java$"/>
8+
<file-match-pattern include-pattern="false" match-pattern="src_gen/.*"/>
9+
<file-match-pattern include-pattern="false" match-pattern="/package-info.java$"/>
10+
</fileset>
11+
</fileset-config>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<fileset-config file-format-version="1.2.0" simple-config="false">
3+
<local-check-config description="" location="/com.oracle.graal.python/.checkstyle_checks.xml" name="Checks" type="project">
4+
<additional-data name="protect-config-file" value="false"/>
5+
</local-check-config>
6+
<fileset check-config-name="Checks" enabled="true" local="true" name="all">
7+
<file-match-pattern include-pattern="true" match-pattern=".*\.java$"/>
8+
<file-match-pattern include-pattern="false" match-pattern="src_gen/.*"/>
9+
<file-match-pattern include-pattern="false" match-pattern="/package-info.java$"/>
10+
</fileset>
11+
</fileset-config>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<fileset-config file-format-version="1.2.0" simple-config="false">
3+
<local-check-config description="" location="/com.oracle.graal.python/.checkstyle_checks.xml" name="Checks" type="project">
4+
<additional-data name="protect-config-file" value="false"/>
5+
</local-check-config>
6+
<fileset check-config-name="Checks" enabled="true" local="true" name="all">
7+
<file-match-pattern include-pattern="true" match-pattern=".*\.java$"/>
8+
<file-match-pattern include-pattern="false" match-pattern="src_gen/.*"/>
9+
<file-match-pattern include-pattern="false" match-pattern="/package-info.java$"/>
10+
</fileset>
11+
</fileset-config>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<fileset-config file-format-version="1.2.0" simple-config="false">
3+
<local-check-config description="" location="/com.oracle.graal.python/.checkstyle_checks.xml" name="Checks" type="project">
4+
<additional-data name="protect-config-file" value="false"/>
5+
</local-check-config>
6+
<fileset check-config-name="Checks" enabled="true" local="true" name="all">
7+
<file-match-pattern include-pattern="true" match-pattern=".*\.java$"/>
8+
<file-match-pattern include-pattern="false" match-pattern="src_gen/.*"/>
9+
<file-match-pattern include-pattern="false" match-pattern="/package-info.java$"/>
10+
</fileset>
11+
</fileset-config>

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixModuleBuiltins.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,9 +1290,8 @@ abstract static class SystemNode extends PythonBuiltinNode {
12901290
static {
12911291
String osProperty = System.getProperty("os.name");
12921292
shell = osProperty != null && osProperty.toLowerCase(Locale.ENGLISH).startsWith("windows") ? new String[]{"cmd.exe", "/c"}
1293-
: new String[]{(System.getenv().getOrDefault("SHELL", "sh")), "-c"};
1293+
: new String[]{(System.getenv().getOrDefault("SHELL", "sh")), "-c"};
12941294
}
1295-
12961295

12971296
static class PipePump extends Thread {
12981297
private static final int MAX_READ = 8192;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/bytes/PByteArray.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,10 @@ public boolean equals(Object obj) {
8181
if (this == obj) {
8282
return true;
8383
}
84-
PByteArray other = (PByteArray)obj;
84+
PByteArray other = (PByteArray) obj;
8585
return Arrays.equals(store.getInternalArray(), other.store.getInternalArray());
8686
}
8787

88-
8988
@Override
9089
public final int hashCode() {
9190
return Arrays.hashCode(store.getInternalArray());

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/EconomicMapStorage.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@
5959
*
6060
* When the hash table needs to be constructed, the field {@link #hashArray} becomes a new hash
6161
* array where an entry of 0 means no hit and otherwise denotes the entry number in the
62-
* {@link #entriesArr} array. The hash array is interpreted as an actual byte array if the indices fit
63-
* within 8 bit, or as an array of short values if the indices fit within 16 bit, or as an array of
64-
* integer values in other cases.
62+
* {@link #entriesArr} array. The hash array is interpreted as an actual byte array if the indices
63+
* fit within 8 bit, or as an array of short values if the indices fit within 16 bit, or as an array
64+
* of integer values in other cases.
6565
*
6666
* Hash collisions are handled by chaining a linked list of {@link CollisionLink} objects that take
6767
* the place of the values in the {@link #entriesArr} array.
6868
*
69-
* Removing entries will put {@code null} into the {@link #entriesArr} array. If the occupation of the
70-
* map falls below a specific threshold, the map will be compressed via the
69+
* Removing entries will put {@code null} into the {@link #entriesArr} array. If the occupation of
70+
* the map falls below a specific threshold, the map will be compressed via the
7171
* {@link #maybeCompress(int, Equivalence)} method.
7272
*/
7373
public class EconomicMapStorage extends HashingStorage implements Iterable<Object> {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/floats/FloatBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ public abstract static class HexNode extends PythonBuiltinNode {
620620

621621
@TruffleBoundary
622622
private static String makeHexNumber(double value) {
623-
623+
624624
if (Double.isNaN(value)) {
625625
return "nan";
626626
} else if (Double.POSITIVE_INFINITY == value) {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/slice/PSlice.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ public boolean equals(Object obj) {
9595
if (this == obj) {
9696
return true;
9797
}
98-
PSlice other = (PSlice)obj;
98+
PSlice other = (PSlice) obj;
9999
return (this.start == other.start && this.stop == other.stop && this.step == other.step);
100100
}
101101

102102
@Override
103103
public int hashCode() {
104104
return Objects.hash(this.start, this.stop, this.step);
105105
}
106-
106+
107107
@ValueType
108108
public static final class SliceInfo {
109109
public final int start;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/zipimporter/PZipImporter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2018, Oracle and/or its affiliates.
2+
* Copyright (c) 2017, 2019, Oracle and/or its affiliates.
33
* Copyright (c) 2013, Regents of the University of California
44
*
55
* All rights reserved.
@@ -200,7 +200,7 @@ protected String makePackagePath(String fullname) {
200200
*/
201201
@CompilerDirectives.TruffleBoundary
202202
private String getCode(String filenameAndSuffix) {
203-
ZipFile zip = null;
203+
ZipFile zip = null;
204204
try {
205205
zip = new ZipFile(archive);
206206
ZipEntry entry = zip.getEntry(filenameAndSuffix);
@@ -223,10 +223,10 @@ private String getCode(String filenameAndSuffix) {
223223
try {
224224
zip.close();
225225
} catch (IOException e) {
226-
// just ignore it.
226+
// just ignore it.
227227
}
228228
}
229-
}
229+
}
230230
}
231231

232232
/**

0 commit comments

Comments
 (0)