Skip to content

Commit 450de74

Browse files
SentryManrbygrave
andauthored
Fix SuppressLogging Typo (#638)
* fix typo * Formatting only --------- Co-authored-by: Rob Bygrave <[email protected]>
1 parent 9810252 commit 450de74

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

http-api/src/main/java/io/avaje/http/api/SupressLogging.java renamed to http-api/src/main/java/io/avaje/http/api/SuppressLogging.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
* interface CustomerApi {
1818
* ...
1919
* @Get("/{id}")
20-
* @SupressLogging
20+
* @SuppressLogging
2121
* Customer getById(long id);
2222
*
2323
* @Post
24-
* @SupressLogging
24+
* @SuppressLogging
2525
* long save(Customer customer);
2626
* }
2727
*
2828
* }</pre>
2929
*/
3030
@Retention(SOURCE)
3131
@Target({ElementType.TYPE, ElementType.METHOD})
32-
public @interface SupressLogging {}
32+
public @interface SuppressLogging {}

http-generator-client/src/main/java/io/avaje/http/generator/client/ClientMethodWriter.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import javax.lang.model.type.TypeKind;
1919
import javax.lang.model.util.ElementFilter;
2020

21-
import io.avaje.http.api.SupressLogging;
21+
import io.avaje.http.api.SuppressLogging;
2222
import io.avaje.http.generator.core.APContext;
2323
import io.avaje.http.generator.core.Append;
2424
import io.avaje.http.generator.core.BeanParamReader;
@@ -35,11 +35,9 @@
3535
import io.avaje.prism.GeneratePrism;
3636
import io.avaje.prism.GenerateUtils;
3737

38-
/**
39-
* Write code to register Web route for a given controller method.
40-
*/
38+
/** Write code to register Web route for a given controller method. */
4139
@GenerateUtils
42-
@GeneratePrism(SupressLogging.class)
40+
@GeneratePrism(SuppressLogging.class)
4341
final class ClientMethodWriter {
4442
private static final KnownResponse KNOWN_RESPONSE = new KnownResponse();
4543
private static final String BODY_HANDLER = "java.net.http.HttpResponse.BodyHandler";
@@ -71,8 +69,8 @@ final class ClientMethodWriter {
7169
this.timeout = method.timeout();
7270
this.useConfig = ProcessingContext.typeElement("io.avaje.config.Config") != null;
7371
this.suppressLogging =
74-
SupressLoggingPrism.isPresent(method.element())
75-
|| SupressLoggingPrism.isPresent(method.element().getEnclosingElement());
72+
SuppressLoggingPrism.isPresent(method.element())
73+
|| SuppressLoggingPrism.isPresent(method.element().getEnclosingElement());
7674
this.segmentPropertyMap =
7775
method.pathSegments().segments().stream()
7876
.filter(Segment::isProperty)

http-generator-client/src/test/java/io/avaje/http/generator/client/clients/TitanFall.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import io.avaje.http.api.Client;
77
import io.avaje.http.api.Get;
88
import io.avaje.http.api.Headers;
9-
import io.avaje.http.api.SupressLogging;
9+
import io.avaje.http.api.SuppressLogging;
1010

1111
@Client
12-
@SupressLogging
12+
@SuppressLogging
1313
@Headers("Content-Type: applicaton/json")
1414
public interface TitanFall {
1515

tests/test-client/src/main/java/example/github/Simple.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
import io.avaje.http.api.Client;
66
import io.avaje.http.api.Get;
7-
import io.avaje.http.api.SupressLogging;
7+
import io.avaje.http.api.SuppressLogging;
88
import io.avaje.http.client.HttpException;
99

1010
@Client
1111
public interface Simple {
1212

13-
@SupressLogging
13+
@SuppressLogging
1414
@Get("users/{user}/repos")
1515
List<Repo> listRepos(String user, String other) throws HttpException;
1616
}

0 commit comments

Comments
 (0)