Skip to content

Commit cd45e27

Browse files
committed
Code Cleanup (warnings)
Automatically fixed - Unnecessary modifier
1 parent cd64464 commit cd45e27

34 files changed

+193
-193
lines changed

use-core/src/main/java/org/tzi/use/gen/assl/dynamics/IGCaller.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
import org.tzi.use.uml.ocl.value.Value;
3333

3434
public interface IGCaller {
35-
public void feedback( GConfiguration configuration,
36-
Value value,
37-
IGCollector collector )
35+
void feedback(GConfiguration configuration,
36+
Value value,
37+
IGCollector collector)
3838
throws GEvaluationException;
3939

40-
public String toString();
40+
String toString();
4141
}

use-core/src/main/java/org/tzi/use/gen/assl/dynamics/IGChecker.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
import org.tzi.use.uml.sys.MSystemState;
3333

3434
public interface IGChecker {
35-
public boolean check(MSystemState state, IGCollector collector);
35+
boolean check(MSystemState state, IGCollector collector);
3636
}

use-core/src/main/java/org/tzi/use/gen/assl/dynamics/IGCollector.java

+22-22
Original file line numberDiff line numberDiff line change
@@ -41,83 +41,83 @@ public interface IGCollector {
4141
* No further execution is needed.
4242
* @return
4343
*/
44-
public boolean canStop();
44+
boolean canStop();
4545

46-
public void setValidStateFound();
46+
void setValidStateFound();
4747

48-
public void subsequentlyPrependStatement(MStatement statement);
48+
void subsequentlyPrependStatement(MStatement statement);
4949

50-
public boolean expectSubsequentReporting();
50+
boolean expectSubsequentReporting();
5151

5252
/**
5353
* Called if a leaf is hit.
5454
* Normally used for statistical reasons (number of states checked).
5555
*/
56-
public void leaf();
56+
void leaf();
5757

5858
long numberOfCheckedStates();
5959

60-
public void setPrePostViolation();
60+
void setPrePostViolation();
6161

62-
public boolean getPrePostViolation();
62+
boolean getPrePostViolation();
6363

64-
public PrintWriter basicPrintWriter();
65-
public boolean doBasicPrinting();
64+
PrintWriter basicPrintWriter();
65+
boolean doBasicPrinting();
6666

67-
public PrintWriter detailPrintWriter();
68-
public boolean doDetailPrinting();
67+
PrintWriter detailPrintWriter();
68+
boolean doDetailPrinting();
6969

70-
public void invalid( String str );
71-
public void invalid( Exception e );
70+
void invalid(String str);
71+
void invalid(Exception e);
7272

7373
/**
7474
* Adds <code>ignoredStates</code> to the overall ignored states
7575
* @param ignoredStates
7676
*/
77-
public void addIgnoredStates(long ignoredStates);
77+
void addIgnoredStates(long ignoredStates);
7878

7979
/**
8080
* Informs the previous callers, that a barrier cannot be passed.
8181
*/
82-
public void setBlocked(boolean newValue);
82+
void setBlocked(boolean newValue);
8383

8484
/**
8585
* Returns the state of the last checked barrier.
8686
*/
87-
public boolean getBlocked();
87+
boolean getBlocked();
8888

8989
/**
9090
* Adds 1 to the cut counter
9191
*/
92-
public void addCut();
92+
void addCut();
9393

9494
/**
9595
* Returns the number of cuts
9696
* @return Number of cuts made
9797
*/
98-
public long getCuts();
98+
long getCuts();
9999

100100
/**
101101
* Adds one to the number of "hit" barriers.
102102
*/
103-
public void addBarrierBlock();
103+
void addBarrierBlock();
104104

105105
/**
106106
* Returns the number of barriers hit.
107107
* @return Number of hit barriers.
108108
*/
109-
public long getBarriersHit();
109+
long getBarriersHit();
110110

111111
/**
112112
* Add the barrier statement to the list of barriers.
113113
* @param bInstr
114114
*/
115-
public void addBarrier(GInstrBarrier bInstr);
115+
void addBarrier(GInstrBarrier bInstr);
116116

117117
/**
118118
* Add the calculated barrier statement to the list of barriers and
119119
* increments the counter for calculated barriers by one.
120120
* @param bInstr
121121
*/
122-
public void addBarrier(GInstrCalculatedBarrier bInstr);
122+
void addBarrier(GInstrCalculatedBarrier bInstr);
123123
}

use-core/src/main/java/org/tzi/use/gen/assl/statics/IGInstructionMatcher.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
* @author Joern Bohling
3333
*/
3434
public interface IGInstructionMatcher {
35-
public GInstruction createIfMatches( List<Object> param, MModel model);
36-
public String name();
35+
GInstruction createIfMatches(List<Object> param, MModel model);
36+
String name();
3737
}
3838

3939

use-core/src/main/java/org/tzi/use/graph/DirectedGraph.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public interface DirectedGraph<N, E extends DirectedEdge<N>> extends Collection<
315315
*/
316316
void clear();
317317

318-
public interface NodeSetIterator<N> extends Iterator<N> {
318+
interface NodeSetIterator<N> extends Iterator<N> {
319319
int getDepth();
320320
}
321321
}

use-core/src/main/java/org/tzi/use/uml/mm/MAssociation.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ public interface MAssociation extends MClassifier {
149149
/**
150150
* Sets the position in the defined USE-Model.
151151
*/
152-
public void setPositionInModel(int position);
152+
void setPositionInModel(int position);
153153

154154
/**
155155
* Sets the model owning this class. This method must be called by
156156
* {@link MModel#addAssociation(MAssociation)}.
157157
*
158158
* @see MModel#addAssociation(MAssociation)
159159
*/
160-
public void setModel( MModel model );
160+
void setModel(MModel model);
161161

162162
/**
163163
* Returns true if a link consisting of objects of the given classes
@@ -214,22 +214,22 @@ public interface MAssociation extends MClassifier {
214214
Set<MAssociation> getRedefinesClosure();
215215

216216
@Override
217-
public Set<? extends MAssociation> parents();
217+
Set<? extends MAssociation> parents();
218218

219219
@Override
220-
public Set<? extends MAssociation> allParents();
220+
Set<? extends MAssociation> allParents();
221221

222222
@Override
223-
public Set<? extends MAssociation> allChildren();
223+
Set<? extends MAssociation> allChildren();
224224

225225
@Override
226-
public Set<? extends MAssociation> children();
226+
Set<? extends MAssociation> children();
227227

228228
@Override
229-
public Iterable<? extends MAssociation> generalizationHierachie(boolean includeThis);
229+
Iterable<? extends MAssociation> generalizationHierachie(boolean includeThis);
230230

231231
@Override
232-
public Iterable<? extends MAssociation> specializationHierachie(boolean includeThis);
232+
Iterable<? extends MAssociation> specializationHierachie(boolean includeThis);
233233

234234
/**
235235
* True, if links can be inserted into this association otherwise

use-core/src/main/java/org/tzi/use/uml/mm/MAssociationClass.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@
3030
public interface MAssociationClass extends MClass, MAssociation, MNavigableElement {
3131

3232
@Override
33-
public Set<MAssociationClass> parents();
33+
Set<MAssociationClass> parents();
3434

3535

3636
@Override
37-
public Set<MAssociationClass> allParents();
37+
Set<MAssociationClass> allParents();
3838

3939
@Override
40-
public Set<MAssociationClass> allChildren();
40+
Set<MAssociationClass> allChildren();
4141

4242
@Override
43-
public Set<MAssociationClass> children();
43+
Set<MAssociationClass> children();
4444

4545
@Override
46-
public Iterable<MAssociationClass> generalizationHierachie(boolean includeThis);
46+
Iterable<MAssociationClass> generalizationHierachie(boolean includeThis);
4747

4848
@Override
49-
public Iterable<MAssociationClass> specializationHierachie(boolean includeThis);
49+
Iterable<MAssociationClass> specializationHierachie(boolean includeThis);
5050
}

use-core/src/main/java/org/tzi/use/uml/mm/MClass.java

+20-20
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public interface MClass extends MClassifier {
3636
/**
3737
* Returns the name of this class with lowercase first letter.
3838
*/
39-
public String nameAsRolename();
39+
String nameAsRolename();
4040

4141
/**
4242
* Returns the set of all direct parent classes (without this class).
@@ -45,7 +45,7 @@ public interface MClass extends MClassifier {
4545
* @return Set&lt;MClass&gt;
4646
*/
4747
@Override
48-
public Set<? extends MClass> parents();
48+
Set<? extends MClass> parents();
4949

5050
/**
5151
* Returns the set of all parent classes (without this class).
@@ -55,7 +55,7 @@ public interface MClass extends MClassifier {
5555
* @return Set&lt;MClass&gt;
5656
*/
5757
@Override
58-
public Set<? extends MClass> allParents();
58+
Set<? extends MClass> allParents();
5959

6060
/**
6161
* Returns the set of all child classes (without this class). This
@@ -64,7 +64,7 @@ public interface MClass extends MClassifier {
6464
* @return Set(MClass)
6565
*/
6666
@Override
67-
public Set<? extends MClass> allChildren();
67+
Set<? extends MClass> allChildren();
6868

6969
/**
7070
* Returns the set of all direct child classes (without this
@@ -73,13 +73,13 @@ public interface MClass extends MClassifier {
7373
* @return Set(MClass)
7474
*/
7575
@Override
76-
public Set<? extends MClass> children();
76+
Set<? extends MClass> children();
7777

7878
@Override
79-
public Iterable<? extends MClass> generalizationHierachie(boolean includeThis);
79+
Iterable<? extends MClass> generalizationHierachie(boolean includeThis);
8080

8181
@Override
82-
public Iterable<? extends MClass> specializationHierachie(boolean includeThis);
82+
Iterable<? extends MClass> specializationHierachie(boolean includeThis);
8383

8484
/**
8585
* Adds an attribute. The attribute must have a unique name within
@@ -91,15 +91,15 @@ public interface MClass extends MClassifier {
9191
* attribute with the same name or a name clash
9292
* occurred.
9393
*/
94-
public void addAttribute( MAttribute attr ) throws MInvalidModelException;
94+
void addAttribute(MAttribute attr) throws MInvalidModelException;
9595

9696
/**
9797
* Returns the set of all attributes (including inherited ones)
9898
* defined for this class.
9999
*
100100
* @return List(MAttribute)
101101
*/
102-
public List<MAttribute> allAttributes();
102+
List<MAttribute> allAttributes();
103103

104104
/**
105105
* Adds an operation. The operation name must be unique among all
@@ -109,49 +109,49 @@ public interface MClass extends MClassifier {
109109
* @exception MInvalidModelException the operation is not unique
110110
* or is not a valid redefinition.
111111
*/
112-
public void addOperation( MOperation op ) throws MInvalidModelException;
112+
void addOperation(MOperation op) throws MInvalidModelException;
113113

114114
/**
115115
* Returns the set of all operations (including inherited ones)
116116
* defined for this class.
117117
*
118118
* @return List(MOperation)
119119
*/
120-
public List<MOperation> allOperations();
120+
List<MOperation> allOperations();
121121

122122
/**
123123
* Returns the set of associations this class directly
124124
* participates in.
125125
*
126126
* @return Set(MAssociation).
127127
*/
128-
public Set<MAssociation> associations();
128+
Set<MAssociation> associations();
129129

130130
/**
131131
* Returns the set of associations this class and all of its
132132
* parents participate in.
133133
*
134134
* @return Set(MAssociation).
135135
*/
136-
public Set<MAssociation> allAssociations();
136+
Set<MAssociation> allAssociations();
137137

138138
/**
139139
* Sets the position in the defined USE-Model.
140140
*/
141-
public void setPositionInModel(int position);
141+
void setPositionInModel(int position);
142142

143143
/**
144144
* Process this element with visitor.
145145
*/
146-
public void processWithVisitor( MMVisitor v );
146+
void processWithVisitor(MMVisitor v);
147147

148148
/**
149149
* Searches for the association ends connected to this class or
150150
* its parents with the given name.
151151
* @param name The name of association ends to look for.
152152
* @return A list of association ends in the order from the most specific class to the more general classes.
153153
*/
154-
public List<MAssociationEnd> getAssociationEnd(String name);
154+
List<MAssociationEnd> getAssociationEnd(String name);
155155

156156
/**
157157
* Registers all association ends as navigable from this
@@ -167,22 +167,22 @@ public interface MClass extends MClassifier {
167167
* Adds a new PSM to the class
168168
* @param psm
169169
*/
170-
public void addOwnedProtocolStateMachine(MProtocolStateMachine psm);
170+
void addOwnedProtocolStateMachine(MProtocolStateMachine psm);
171171

172172
/**
173173
* Returns all owned PSM or an empty list if no PSM is defined.
174174
* @return
175175
*/
176-
public Set<MProtocolStateMachine> getOwnedProtocolStateMachines();
176+
Set<MProtocolStateMachine> getOwnedProtocolStateMachines();
177177

178178
/**
179179
* @param operationCall
180180
* @return
181181
*/
182-
public boolean hasStateMachineWhichHandles(MOperationCall operationCall);
182+
boolean hasStateMachineWhichHandles(MOperationCall operationCall);
183183

184184
/**
185185
* @return
186186
*/
187-
public Set<MProtocolStateMachine> getAllOwnedProtocolStateMachines();
187+
Set<MProtocolStateMachine> getAllOwnedProtocolStateMachines();
188188
}

use-core/src/main/java/org/tzi/use/uml/mm/MClassifier.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ public interface MClassifier extends Type, MModelElement, MNamedElement, UseFile
3838
/**
3939
* Returns the model owning this classifier.
4040
*/
41-
public MModel model();
41+
MModel model();
4242

4343
/**
4444
* Sets the model owning this classifier. This method must be called by
4545
* {@link MModel#addClass(MClass)}.
4646
*
4747
* @see MModel#addClass(MClass)
4848
*/
49-
public void setModel( MModel model );
49+
void setModel(MModel model);
5050

5151
/**
5252
* If true, the Classifier does not provide a complete declaration and can typically not be instantiated.

0 commit comments

Comments
 (0)