Skip to content

Commit 1de9b1d

Browse files
committed
Format.
1 parent 281b53f commit 1de9b1d

File tree

2 files changed

+33
-12
lines changed

2 files changed

+33
-12
lines changed

javaparser-core/src/main/java/com/github/javaparser/ast/StubUnit.java

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ public class StubUnit extends Node {
3838
*/
3939
private NodeList<CompilationUnit> compilationUnits;
4040

41-
/** Contains the information about where this stub unit was loaded from, or empty if it wasn't loaded from a file.*/
41+
/**
42+
* Contains the information about where this stub unit was loaded from, or empty if it wasn't loaded from a file.
43+
*/
4244
@InternalProperty
4345
private StubUnit.Storage storage;
4446

@@ -61,17 +63,23 @@ public StubUnit(NodeList<CompilationUnit> compilationUnits) {
6163
this.compilationUnits = compilationUnits;
6264
}
6365

64-
/** Gets the list of compilation units of the stub file. */
66+
/**
67+
* Gets the list of compilation units of the stub file.
68+
*/
6569
public List<CompilationUnit> getCompilationUnits() {
6670
return compilationUnits;
6771
}
6872

69-
/** Sets the list of compilation units of the stub file. */
73+
/**
74+
* Sets the list of compilation units of the stub file.
75+
*/
7076
public void setCompilationUnits(NodeList<CompilationUnit> compilationUnits) {
7177
this.compilationUnits = compilationUnits;
7278
}
7379

74-
/** @return information about where this stub unit was loaded from, or empty if it wasn't loaded from a file.*/
80+
/**
81+
* @return information about where this stub unit was loaded from, or empty if it wasn't loaded from a file.
82+
*/
7583
public Optional<StubUnit.Storage> getStorage() {
7684
return Optional.ofNullable(storage);
7785
}
@@ -98,10 +106,14 @@ public <A> void accept(VoidVisitor<A> v, A arg) {
98106
*/
99107
public static class Storage {
100108

101-
/** A stub unit that it represents. */
109+
/**
110+
* A stub unit that it represents.
111+
*/
102112
private final StubUnit stubUnit;
103113

104-
/** The path to the source for this stub unit. */
114+
/**
115+
* The path to the source for this stub unit.
116+
*/
105117
private final Path path;
106118

107119
/**
@@ -115,27 +127,37 @@ private Storage(StubUnit stubUnit, Path path) {
115127
this.path = path.toAbsolutePath();
116128
}
117129

118-
/** @return the path to the source for this StubUnit. */
130+
/**
131+
* @return the path to the source for this StubUnit.
132+
*/
119133
public Path getPath() {
120134
return path;
121135
}
122136

123-
/** @return the StubUnit this Storage is about. */
137+
/**
138+
* @return the StubUnit this Storage is about.
139+
*/
124140
public StubUnit getStubUnit() {
125141
return stubUnit;
126142
}
127143

128-
/** @return the file name of the stub file that represented by the StubUnit. */
144+
/**
145+
* @return the file name of the stub file that represented by the StubUnit.
146+
*/
129147
public String getFileName() {
130148
return path.getFileName().toString();
131149
}
132150

133-
/** @return the directory with the stub file that represented by the StubUnit. */
151+
/**
152+
* @return the directory with the stub file that represented by the StubUnit.
153+
*/
134154
public Path getDirectory() {
135155
return path.getParent();
136156
}
137157

138-
/** Saves the stub unit to its original location. */
158+
/**
159+
* Saves the stub unit to its original location.
160+
*/
139161
public void save() {
140162
save(stubUnit -> new PrettyPrinter().print(stubUnit));
141163
}

javaparser-core/src/main/java/com/github/javaparser/printer/ConcreteSyntaxModel.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ private static CsmElement typeArguments() {
100100
comment(),
101101
list(ObservableProperty.COMPILATION_UNITS, none(), none(), newline()),
102102
orphanCommentsEnding()));
103-
104103
// /
105104
// / Body
106105
// /

0 commit comments

Comments
 (0)