File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,7 @@ public LineMapping(ApiProblem problem) {
120120
121121 @ Override
122122 public boolean equals (Object obj ) {
123- if (obj instanceof LineMapping ) {
124- LineMapping lm = (LineMapping ) obj ;
123+ if (obj instanceof LineMapping lm ) {
125124 return lm .linenumber == this .linenumber && lm .problemid == this .problemid && (this .message == null ? lm .message == null : this .message .equals (lm .message ));
126125 }
127126 return super .equals (obj );
Original file line number Diff line number Diff line change @@ -155,8 +155,7 @@ private boolean acceptComponent0(IApiComponent component) {
155155 * @return true if the project represented by the given component is API tools enabled false otherwise
156156 */
157157 private boolean isApiComponent (IApiComponent component ) {
158- if (component instanceof ProjectComponent ) {
159- ProjectComponent comp = (ProjectComponent ) component ;
158+ if (component instanceof ProjectComponent comp ) {
160159 return comp .hasApiDescription ();
161160 }
162161 else {
You can’t perform that action at this time.
0 commit comments