Polish
Closes gh-11510
This commit is contained in:
committed by
Stephane Nicoll
parent
7c5cf903fc
commit
37d8eedae3
@@ -22,7 +22,7 @@ import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
// Note: this class was written without inspecting the non-free org.json sourcecode.
|
||||
// Note: this class was written without inspecting the non-free org.json source code.
|
||||
|
||||
/**
|
||||
* A dense indexed sequence of values. Values may be any mix of
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.boot.configurationprocessor.json;
|
||||
|
||||
// Note: this class was written without inspecting the non-free org.json sourcecode.
|
||||
// Note: this class was written without inspecting the non-free org.json source code.
|
||||
|
||||
/**
|
||||
* Thrown to indicate a problem with the JSON API. Such problems include:
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
||||
// Note: this class was written without inspecting the non-free org.json sourcecode.
|
||||
// Note: this class was written without inspecting the non-free org.json source code.
|
||||
|
||||
/**
|
||||
* A modifiable set of name/value mappings. Names are unique, non-null strings.
|
||||
|
||||
@@ -20,7 +20,7 @@ import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
// Note: this class was written without inspecting the non-free org.json sourcecode.
|
||||
// Note: this class was written without inspecting the non-free org.json source code.
|
||||
|
||||
/**
|
||||
* Implements {@link JSONObject#toString} and {@link JSONArray#toString}. Most
|
||||
@@ -104,7 +104,7 @@ public class JSONStringer {
|
||||
* A special bracketless array needed by JSONStringer.join() and
|
||||
* JSONObject.quote() only. Not used for JSON encoding.
|
||||
*/
|
||||
NULL,
|
||||
NULL
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.boot.configurationprocessor.json;
|
||||
|
||||
// Note: this class was written without inspecting the non-free org.json sourcecode.
|
||||
// Note: this class was written without inspecting the non-free org.json source code.
|
||||
|
||||
/**
|
||||
* Parses a JSON (<a href="http://www.ietf.org/rfc/rfc4627.txt">RFC 4627</a>)
|
||||
|
||||
@@ -102,10 +102,11 @@ public class RandomAccessDataFileTests {
|
||||
|
||||
@Test
|
||||
public void fileExists() {
|
||||
File file = new File("/does/not/exist");
|
||||
this.thrown.expect(IllegalArgumentException.class);
|
||||
this.thrown.expectMessage(String.format("File %s must exist",
|
||||
new File("/does/not/exist").getAbsolutePath()));
|
||||
new RandomAccessDataFile(new File("/does/not/exist"));
|
||||
file.getAbsolutePath()));
|
||||
new RandomAccessDataFile(file);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -117,10 +118,11 @@ public class RandomAccessDataFileTests {
|
||||
|
||||
@Test
|
||||
public void fileExistsWithConcurrentReads() {
|
||||
File file = new File("/does/not/exist");
|
||||
this.thrown.expect(IllegalArgumentException.class);
|
||||
this.thrown.expectMessage(String.format("File %s must exist",
|
||||
new File("/does/not/exist").getAbsolutePath()));
|
||||
new RandomAccessDataFile(new File("/does/not/exist"), 1);
|
||||
file.getAbsolutePath()));
|
||||
new RandomAccessDataFile(file, 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user