Skip to content

Commit

Permalink
Formatting license
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocarvalho777 committed Jul 14, 2021
1 parent 9f6c6ee commit 02b26b1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
25 changes: 12 additions & 13 deletions core/src/main/java/feign/Contract.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2012-2020 The Feign Authors
* Copyright 2012-2021 The Feign Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -40,26 +40,25 @@ abstract class BaseContract implements Contract {
private boolean alwaysEncodeBody;

/**
* Returns whether a custom {@link feign.codec.Encoder}, if set for the client,
* should always be in charge of defining the request message body.
* See {@link #alwaysEncodeBody(boolean)} for further details.
* Returns whether a custom {@link feign.codec.Encoder}, if set for the client, should always be
* in charge of defining the request message body. See {@link #alwaysEncodeBody(boolean)} for
* further details.
*
* @return whether a custom {@link feign.codec.Encoder}, if set for the client,
* should always be in charge of defining the request message body.
* @return whether a custom {@link feign.codec.Encoder}, if set for the client, should always be
* in charge of defining the request message body.
*/
protected boolean alwaysEncodeBody() {
return alwaysEncodeBody;
}

/**
* Sets whether a custom {@link feign.codec.Encoder}, if set for the client,
* should always be in charge of defining the request message body.
* If set to false, the encoder will only be called if one, and only one,
* body parameter is provided and the method is not configured to
* have the body set via Feign annotations. This is false by default.
* Sets whether a custom {@link feign.codec.Encoder}, if set for the client, should always be in
* charge of defining the request message body. If set to false, the encoder will only be called
* if one, and only one, body parameter is provided and the method is not configured to have the
* body set via Feign annotations. This is false by default.
*
* @param alwaysEncodeBody if true, custom {@link feign.codec.Encoder} will
* always be in charge of defining the request message body
* @param alwaysEncodeBody if true, custom {@link feign.codec.Encoder} will always be in charge
* of defining the request message body
*/
protected void alwaysEncodeBody(boolean alwaysEncodeBody) {
this.alwaysEncodeBody = alwaysEncodeBody;
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/feign/DeclarativeContract.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2012-2020 The Feign Authors
* Copyright 2012-2021 The Feign Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/feign/MethodMetadata.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2012-2020 The Feign Authors
* Copyright 2012-2021 The Feign Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/feign/ReflectiveFeign.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2012-2020 The Feign Authors
* Copyright 2012-2021 The Feign Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand Down

0 comments on commit 02b26b1

Please sign in to comment.