Skip to content

Commit

Permalink
(chores) camel-core: added unused suppressions to methods used indire…
Browse files Browse the repository at this point in the history
…ctly
  • Loading branch information
orpiske committed Apr 24, 2024
1 parent 88d7210 commit 675a527
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public void setBaz(int baz) {
this.baz = baz;
}

@SuppressWarnings("unused")
public void doSomething() {
// noop
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public void setBaz(int baz) {
this.baz = baz;
}

@SuppressWarnings("unused")
public void doSomething() {
// noop
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public void testAmbigious() {
assertEquals(2, e.getMethods().size());
}

@SuppressWarnings("Unused")
static class Bean {
public void doSomething(RequestA request) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public int process(Request request, String body) {
}
}

@SuppressWarnings("Unused")
public static class A {

public void doSomething(String body) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public void testBeanInfoOverloaded() {
assertEquals(RequestB.class, method.getGenericParameterTypes()[0]);
}

@SuppressWarnings("Unused")
static class Bean {
public void doSomething(RequestA request) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public void testBeanInfoOverloadedWithSubTypedParam() {
assertEquals(2, beanInfo.getMethods().size());
}

@SuppressWarnings("Unused")
static class Bean {

public void doSomething(RequestB request) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,16 @@ public interface Foo {

@InOnly
public interface MyOneWayInterface {
@SuppressWarnings("Unused")
void inOnlyMethod();
}

@InOnly
public interface MyOneWayInterfaceWithOverloadedMethod {
@SuppressWarnings("Unused")
void inOnlyMethod();

@SuppressWarnings("Unused")
@InOut
Object inOutMethod();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,20 @@ public void configure() {
};
}

@SuppressWarnings("Unused")
public String doSomething(String s) {
return s;
}

@SuppressWarnings("Unused")
public String changeSomething(String s) {
if ("Hello World".equals(s)) {
return "Bye World";
}
return null;
}

@SuppressWarnings("Unused")
public void doNothing(String s) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public void configure() {
};
}

@SuppressWarnings("Unused")
public static class MyBean implements Service {
private String status;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public void configure() {
from("direct:mytest").id(ROUTE_ID).bean(this, "hello", BeanScope.Prototype).to("log:out");
}

@SuppressWarnings("Unused")
public void hello(final Exchange exchange) {
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ void testGetPropertyName() throws Exception {
assertEquals("cheese", name, "Property name");
}

@SuppressWarnings("Unused")
public void setCheese(String cheese) {
// used in the above unit test
}
Expand Down

0 comments on commit 675a527

Please sign in to comment.