Skip to content

Commit

Permalink
Add hyperlinks to some notes (#1463)
Browse files Browse the repository at this point in the history
* Add hyperlinks to some notes

* remove unused import class

* fixes the @see error

* fixes the @see error

* fixes javadoc line is longer than 200 characters

* fixes javadoc line is longer than 200 characters

* fixes javadoc line is longer than 200 characters

* Add hyperlinks to some notes

* fix checkstyle

* fix checkstyle

Co-authored-by: dengliming <liming.d.pro@gmail.com>
  • Loading branch information
THyyy and dengliming committed May 14, 2021
1 parent f382faf commit b5891ac
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 14 deletions.
1 change: 1 addition & 0 deletions script/shenyu_checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<module name="MethodLength"/>
<module name="LineLength">
<property name="max" value="200"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>
<module name="OuterTypeNumber"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

/**
* ControllerMethodResolver.
* https://dzone.com/articles/global-exception-handling-with-controlleradvice.
*
* @see <a href="https://dzone.com/articles/global-exception-handling-with-controlleradvice">global-exception-handling-with-controlleradvice</a>
*/
@Slf4j
@ControllerAdvice
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
import java.util.List;

/**
* See https://stripe.com/blog/rate-limiters and
* https://gist.github.com/ptarjan/e38f45f2dfe601419ca3af937fff574d#file-1-check_request_rate_limiter-rb-L11-L34
* The type Concurrent rate limiter algorithm.
*
*
* @see <a href="https://stripe.com/blog/rate-limiters">rate-limiters</a>
* @see <a href="https://gist.github.com/ptarjan/e38f45f2dfe601419ca3af937fff574d#file-1-check_request_rate_limiter-rb-L11-L34">check_request_rate_limiter</a>
*/
@Join
public class ConcurrentRateLimiterAlgorithm extends AbstractRateLimiterAlgorithm {
Expand All @@ -40,7 +40,7 @@ public class ConcurrentRateLimiterAlgorithm extends AbstractRateLimiterAlgorithm
protected String getScriptName() {
return RateLimitEnum.CONCURRENT.getScriptName();
}

@Override
protected String getKeyName() {
return RateLimitEnum.CONCURRENT.getKeyName();
Expand All @@ -52,7 +52,7 @@ public List<String> getKeys(final String id) {
String requestKey = UUIDUtils.getInstance().generateShortUuid();
return Arrays.asList(tokenKey, requestKey);
}

@Override
@SuppressWarnings("unchecked")
public void callback(final RedisScript<?> script, final List<String> keys, final List<String> scriptArgs) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

/**
* The type Token bucket rate limiter algorithm.
* See https://stripe.com/blog/rate-limiters and
* https://gist.github.com/ptarjan/e38f45f2dfe601419ca3af937fff574d#file-1-check_request_rate_limiter-rb-L11-L34
*
*
* @see <a href="https://stripe.com/blog/rate-limiters">rate-limiters</a>
* @see <a href="https://gist.github.com/ptarjan/e38f45f2dfe601419ca3af937fff574d#file-1-check_request_rate_limiter-rb-L11-L34">check_request_rate_limiter</a>
*/
@Join
public class TokenBucketRateLimiterAlgorithm extends AbstractRateLimiterAlgorithm {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
/**
* The type Extension loader.
* This is done by loading the properties file.
* https://github.com/apache/dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
*
* @see <a href="https://github.com/apache/dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java">ExtensionLoader</a>
*/
@Slf4j
@SuppressWarnings("all")
Expand Down
2 changes: 1 addition & 1 deletion shenyu-spi/src/main/java/org/apache/shenyu/spi/SPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* SPI Extend the processing.
* All spi system reference the apache implementation of
* https://github.com/apache/dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/extension.
* <a href="https://github.com/apache/dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/extension">Apache Dubbo Common Extension</a>.
*
* @see ExtensionFactory
* @see ExtensionLoader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ public ErrorWebExceptionHandler errorWebExceptionHandler(final ErrorAttributes e
}

/**
* https://github.com/spring-cloud/spring-cloud-gateway/issues/541
* Hidden http method filter hidden http method filter.
*
* @see <a href="https://github.com/spring-cloud/spring-cloud-gateway/issues/541">issues-541</a>
* @return the hidden http method filter
*/
@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@

/**
* The type Body inserter context.
* * @see https://github.com/spring-cloud/spring-cloud-gateway/blob/master/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/BodyInserterContext.java
*
* @see <a href="https://github.com/spring-cloud/spring-cloud-gateway/blob/master/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/BodyInserterContext.java">BodyInserterContext</a>
*/
public class BodyInserterContext implements BodyInserter.Context {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
import java.util.function.Supplier;

/**
* * @see https://github.com/spring-cloud/spring-cloud-gateway/blob/master/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/rewrite/CachedBodyOutputMessage.java
* Implementation of {@link ClientHttpRequest} that saves body as a field.
*
* @see <a href="https://github.com/spring-cloud/spring-cloud-gateway/blob/master/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/rewrite/CachedBodyOutputMessage.java">CachedBodyOutputMessage</a>
*/
public class CachedBodyOutputMessage implements ReactiveHttpOutputMessage {

Expand Down

0 comments on commit b5891ac

Please sign in to comment.