Skip to content

Commit 6a06061

Browse files
authored
Fix all warnings reported by ./gradlew javadoc (#3330)
see title
2 parents 1b1ddf1 + e3880ec commit 6a06061

76 files changed

Lines changed: 499 additions & 333 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

key.core.rifl/src/main/java/de/uka/ilkd/key/util/rifl/SpecificationEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import java.util.Arrays;
77

88
/**
9-
* Program elements which may be named as sources or sinks in RIFL/Java. Currently fields, method
9+
* Program elements which may be named as sources or sinks in RIFL/Java. Currently, fields, method
1010
* parameters, and method return values can be named both sources and sinks.
1111
*
1212
* @author bruns
@@ -138,9 +138,9 @@ public static final class ReturnValue extends SpecificationEntity {
138138
* Creates a new specification element for a method return.
139139
*
140140
* @param m name of the method with parameter types in parentheses
141-
* @param pt names of the parameter types of the method
142141
* @param p package name of the class where the method is declared
143142
* @param c name of the class where the method is declared
143+
* @param t a type
144144
*/
145145
ReturnValue(String m, String p, String c, Type t) {
146146
super(p, c, t);

key.core.symbolic_execution/src/main/java/de/uka/ilkd/key/symbolic_execution/SymbolicLayoutExtractor.java

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
import org.key_project.util.collection.ImmutableSet;
3232
import org.key_project.util.java.CollectionUtil;
3333

34+
// need to switch spotless off for this comment as it replaces @code with @code
35+
// spotless:off
3436
/**
3537
* <p>
3638
* Instances of this class can be used to compute memory layouts (objects with values and
@@ -41,24 +43,26 @@
4143
* started. Such memory layouts are named <i>initial memory layouts</i>.
4244
* </p>
4345
* <p>
44-
* Example program:
46+
* Example program:<br/>
4547
*
4648
* <pre>
47-
* <code>
48-
* public class Example {
49-
* private int value;
49+
* {@code
50+
* public class Example {
51+
* private int value;
5052
*
51-
* private Example next;
53+
* private Example next;
5254
*
53-
* public static int main(Example e) {
54-
* e.value = 1;
55-
* e.next.value = 2;
56-
* return e.value + e.next.value; // Current node in KeY's proof tree
57-
* }
55+
* public static int main(Example e) {
56+
* e.value = 1;
57+
* e.next.value = 2;
58+
* return e.value + e.next.value; // Current node in KeY's proof tree
59+
* }
60+
* }
5861
* }
59-
* </code>
6062
* </pre>
6163
*
64+
* </p>
65+
* <p>
6266
* If the symbolic execution stops at the return statement, two memory layouts are possible. In the
6367
* first case refers {@code e} and {@code e.next} to different objects (result is {@code 3}). In the
6468
* second case refers both to the same object (result is {@code 4}). That both objects can't be
@@ -68,15 +72,15 @@
6872
* The following code snippet shows how to use this class:
6973
*
7074
* <pre>
71-
* <code>
72-
* SymbolicLayoutExtractor e = new SymbolicLayoutExtractor(node);
73-
* e.analyse();
74-
* for (int i = 0; i < e.getLayoutsCount(); i++) {
75-
* ImmutableList&lt;ISymbolicEquivalenceClass&gt; equivalenceClasses = e.getEquivalenceClasses(i);
76-
* ISymbolicLayout initial = e.getInitialLayout(i);
77-
* ISymbolicLayout current = e.getCurrentLayout(i);
75+
* {@code
76+
* SymbolicLayoutExtractor e = new SymbolicLayoutExtractor(node);
77+
* e.analyse();
78+
* for (int i = 0; i < e.getLayoutsCount(); i++) {
79+
* ImmutableList&lt;ISymbolicEquivalenceClass&gt; equivalenceClasses = e.getEquivalenceClasses(i);
80+
* ISymbolicLayout initial = e.getInitialLayout(i);
81+
* ISymbolicLayout current = e.getCurrentLayout(i);
82+
* }
7883
* }
79-
* </code>
8084
* </pre>
8185
* </p>
8286
* <p>
@@ -128,6 +132,7 @@
128132
* @see ISymbolicLayout
129133
* @see ExecutionNodeSymbolicLayoutExtractor
130134
*/
135+
// spotless:on
131136
public class SymbolicLayoutExtractor extends AbstractUpdateExtractor {
132137
/**
133138
* The used {@link IModelSettings}.

key.core.symbolic_execution/src/main/java/de/uka/ilkd/key/symbolic_execution/po/ProgramMethodPO.java

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,22 @@
4242
* The generated {@link Sequent} has the following form:
4343
*
4444
* <pre>
45-
* <code>
45+
* {@code
4646
* ==>
47-
* &lt;generalAssumptions&gt; &
48-
* &lt;preconditions&gt;
47+
* <generalAssumptions> &
48+
* <preconditions>
4949
* ->
50-
* &lt;updatesToStoreInitialValues&gt;
51-
* &lt;modalityStart&gt;
52-
* exc=null;try {&lt;methodBodyStatement&gt}catch(java.lang.Exception e) {exc = e}
53-
* &lt;modalityEnd&gt;
54-
* (exc = null & &lt;postconditions &gt; & &lt;optionalUninterpretedPredicate&gt;)
55-
* </code>
50+
* <updatesToStoreInitialValues>
51+
* <modalityStart>
52+
* exc=null;
53+
* try {
54+
* <methodBodyStatement>
55+
* } catch(java.lang.Exception e) {
56+
* exc = e
57+
* }
58+
* <modalityEnd>
59+
* (exc = null & <postconditions > & <optionalUninterpretedPredicate>)
60+
* }
5661
* </pre>
5762
* </p>
5863
*

key.core.symbolic_execution/src/main/java/de/uka/ilkd/key/symbolic_execution/po/ProgramMethodSubsetPO.java

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
import org.key_project.util.collection.ImmutableList;
2727
import org.key_project.util.collection.ImmutableSLList;
2828

29+
// need to switch spotless off for this comment as it replaces @code with &#64;code
30+
// spotless:off
2931
/**
3032
* <p>
3133
* This proof obligation executes selected statements of the body of a given {@link IProgramMethod}.
@@ -38,34 +40,47 @@
3840
* position of the previous statement is exactly the start position of the following statement.
3941
* </p>
4042
* <p>
41-
* Imagine the following snippet: <code><pre>
42-
* int x = 1; // from 3/59 to 4/16
43-
* int y = 2; // from 4/16 to 5/16
44-
* int z = 3; // from 5/16 to 6/16
45-
* </pre></code> To execute only the last two statements a user would select intuitively the source
43+
* Imagine the following snippet:
44+
*
45+
* <pre>
46+
* {@code
47+
* int x = 1; // from 3/59 to 4/16
48+
* int y = 2; // from 4/16 to 5/16
49+
* int z = 3; // from 5/16 to 6/16
50+
* }
51+
* </pre>
52+
* </p>
53+
* <p>
54+
* To execute only the last two statements a user would select intuitively the source
4655
* range 5/0 to 6/16 (the text without leading white space) which matches exactly the used selection
4756
* definition.
4857
* </p>
4958
* <p>
5059
* The generated {@link Sequent} has the following form:
5160
*
5261
* <pre>
53-
* <code>
62+
* {@code
5463
* ==>
55-
* &lt;generalAssumptions&gt; &
56-
* &lt;preconditions&gt;
64+
* <generalAssumptions> &
65+
* <preconditions>
5766
* ->
58-
* &lt;updatesToStoreInitialValues&gt;
59-
* &lt;modalityStart&gt;
60-
* exc=null;try {&lt;methodFrame&gt;&lt;selectedStatements&gt;}catch(java.lang.Exception e) {exc = e}
61-
* &lt;modalityEnd&gt;
62-
* (exc = null & &lt;postconditions &gt; & &lt;optionalUninterpretedPredicate&gt;)
63-
* </code>
67+
* <updatesToStoreInitialValues>
68+
* <modalityStart>
69+
* exc=null;
70+
* try {
71+
* <methodFrame><selectedStatements>
72+
* } catch(java.lang.Exception e) {
73+
* exc = e
74+
* }
75+
* <modalityEnd>
76+
* (exc = null & <postconditions > & <optionalUninterpretedPredicate>)
77+
* }
6478
* </pre>
6579
* </p>
6680
*
6781
* @author Martin Hentschel
6882
*/
83+
//spotless:on
6984
public class ProgramMethodSubsetPO extends ProgramMethodPO {
7085
/**
7186
* Contains all undeclared variables used in the method part to execute.

key.core/src/main/java/de/uka/ilkd/key/java/ContextStatementBlock.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
import org.key_project.util.ExtList;
1717

1818
/**
19-
* In the DL-formulae description of Taclets the program part can have the following form < pi
20-
* alpha;...; omega > Phi where pi is a prefix consisting of open brackets, try's and so on and
21-
* omega is the rest of the program. Between the prefix pi and the postfix omega there can stand an
19+
* In the DL-formulae description of Taclets the program part can have the following form
20+
* {@code < pi
21+
* alpha;...; omega > Phi} where {@code pi} is a prefix consisting of open brackets, {@code try}'s
22+
* and so on and
23+
* omega is the rest of the program. Between the prefix {@code pi} and the postfix {@code omega}
24+
* there can stand an
2225
* arbitrary program. This pattern is realized using this class.
2326
*/
2427

key.core/src/main/java/de/uka/ilkd/key/java/CreateArrayMethodBuilder.java

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -252,18 +252,21 @@ private StatementBlock getCreateArrayBody(
252252
}
253253

254254
/**
255-
* creates the body of method <code>&lt;createArrayHelper(int
256-
* paramLength)&gt;</code> therefore it first adds the statements responsible to take the
255+
* creates the body of method {@code <createArrayHelper(int
256+
* paramLength)>} therefore it first adds the statements responsible to take the
257257
* correct one out of the list, then the arrays length attribute is set followed by a call to
258-
* <code>&lt;prepare&gt;()</code> setting the arrays fields on their default value.
258+
* {@code <prepare>()} setting the arrays fields on their default value.
259259
*
260-
* @param length the final public ProgramVariable <code>length</length> of the array
261-
* &#64;param fields the IList<Fields> of the current array
262-
* &#64;param createTransient a boolean indicating if a transient array has
263-
* to be created (this is special to JavaCard)
264-
* &#64;param transientType a ProgramVariable identifying the kind of transient
265-
* &#64;return the StatementBlock which is the method's body <br></br>
266-
* <code>
260+
* @param length the final public ProgramVariable {@code length} of the array
261+
* @param fields the ImmutableList with fields of the current array
262+
* @param createTransient a boolean indicating if a transient array has
263+
* to be created (this is special to JavaCard)
264+
* @param transientType a ProgramVariable identifying the kind of transient
265+
* @return the StatementBlock which is the method's body <br>
266+
* </br>
267+
*
268+
* <pre>
269+
* {@code
267270
* {
268271
* this.<nextToCreate> = this.<nextToCreate>.;
269272
* this.<initialized> = false;
@@ -273,7 +276,8 @@ private StatementBlock getCreateArrayBody(
273276
* this.<initialized> = true;
274277
* return this;
275278
* }
276-
* </code>
279+
* }
280+
* </pre>
277281
*/
278282
private StatementBlock getCreateArrayHelperBody(
279283
ProgramVariable length,

key.core/src/main/java/de/uka/ilkd/key/java/JavaInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ public IObserverFunction getStaticInv(KeYJavaType target) {
14721472
}
14731473

14741474
/**
1475-
* Returns the special symbol <code>&lt$inv_free&gt;</code> which stands for the static
1475+
* Returns the special symbol {@code <$inv_free&>}, which stands for the static
14761476
* invariant of a type.
14771477
*/
14781478
public IObserverFunction getStaticInvFree(KeYJavaType target) {

key.core/src/main/java/de/uka/ilkd/key/java/Recoder2KeYConverter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ private CrossReferenceServiceConfiguration getServiceConfiguration() {
195195
}
196196

197197
/**
198-
* retrieve the recoder<->key mapping from the associated Recoder2KeY.
198+
* retrieve the recoder {@code <->} key mapping from the associated Recoder2KeY.
199199
*
200200
* @return the mapping, not null.
201201
*/
@@ -584,7 +584,7 @@ private Constructor<?> getKeYClassConstructor(
584584
}
585585

586586
/**
587-
* store an element to the recoder<->key mapping.
587+
* store an element to the recoder {@code <->} key mapping.
588588
*
589589
* @param r the recoder element (not null)
590590
* @param k the key element (not null)

key.core/src/main/java/de/uka/ilkd/key/java/declaration/ParameterDeclaration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
import org.key_project.util.collection.ImmutableArray;
1212

1313
/**
14-
* Formal parameters require a VariableSpecificationList of size() <= 1 (size() == 0 for abstract
14+
* Formal parameters require a VariableSpecificationList of {@code size() <= 1} ({@code size() == 0}
15+
* for abstract
1516
* methods) without initializer (for Java).
1617
*/
1718
public class ParameterDeclaration extends VariableDeclaration {

key.core/src/main/java/de/uka/ilkd/key/java/recoderext/Ccatch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public int getChildPositionCode(ProgramElement child) {
200200
* the replaced child is left untouched.
201201
*
202202
* @param p the old child.
203-
* @param p the new child.
203+
* @param q the new child.
204204
* @return true if a replacement has occured, false otherwise.
205205
* @exception ClassCastException if the new child cannot take over the role of the old one.
206206
*/

0 commit comments

Comments
 (0)