Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored and snicoll committed Apr 30, 2018
1 parent fc8b211 commit a723ac9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ link:spring-boot-project/spring-boot-tools/spring-boot-maven-plugin[Maven] plugi


=== spring-boot-devtools
The spring-boot-devtools module provides additional development-time features such as automatic retarts,
The spring-boot-devtools module provides additional development-time features such as automatic restarts,
for a smoother application development experience. Developer tools are automatically disabled when
running a fully packaged application.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public RandomAccessDataFile(File file) {
* @param length the length of the section
*/
private RandomAccessDataFile(FileAccess fileAccess, long offset, long length) {
this.fileAccess = fileAccess;
this.offset = offset;
this.length = length;
this.fileAccess = fileAccess;
}

/**
Expand Down Expand Up @@ -120,7 +120,7 @@ public void close() throws IOException {
}

/**
* {@link RandomAccessDataInputStream} implementation for the
* {@link InputStream} implementation for the
* {@link RandomAccessDataFile}.
*/
private class DataInputStream extends InputStream {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -679,43 +679,43 @@ public Map<String, String> convert(String s) {

public static class ExampleCustomNoDefaultConstructorBean {

private MyCustomNoDefaultConstructorList items = new MyCustomNoDefaultConstructorList(
private MyCustomNoDefaultConstructorMap items = new MyCustomNoDefaultConstructorMap(
Collections.singletonMap("foo", "bar"));

public MyCustomNoDefaultConstructorList getItems() {
public MyCustomNoDefaultConstructorMap getItems() {
return this.items;
}

public void setItems(MyCustomNoDefaultConstructorList items) {
public void setItems(MyCustomNoDefaultConstructorMap items) {
this.items = items;
}

}

public static class MyCustomNoDefaultConstructorList extends HashMap<String, String> {
public static class MyCustomNoDefaultConstructorMap extends HashMap<String, String> {

public MyCustomNoDefaultConstructorList(Map<String, String> items) {
public MyCustomNoDefaultConstructorMap(Map<String, String> items) {
putAll(items);
}

}

public static class ExampleCustomWithDefaultConstructorBean {

private MyCustomWithDefaultConstructorList items = new MyCustomWithDefaultConstructorList();
private MyCustomWithDefaultConstructorMap items = new MyCustomWithDefaultConstructorMap();

public MyCustomWithDefaultConstructorList getItems() {
public MyCustomWithDefaultConstructorMap getItems() {
return this.items;
}

public void setItems(MyCustomWithDefaultConstructorList items) {
public void setItems(MyCustomWithDefaultConstructorMap items) {
this.items.clear();
this.items.putAll(items);
}

}

public static class MyCustomWithDefaultConstructorList
public static class MyCustomWithDefaultConstructorMap
extends HashMap<String, String> {

}
Expand Down

0 comments on commit a723ac9

Please sign in to comment.