Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit module visibility by making several classes package private #2359

Merged
merged 2 commits into from
Sep 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2020 Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -26,15 +26,15 @@
/**
* Class AsynchronousAntn.
*/
public class AsynchronousAntn extends MethodAntn implements Asynchronous {
class AsynchronousAntn extends MethodAntn implements Asynchronous {

/**
* Constructor.
*
* @param beanClass Bean class.
* @param method The method.
*/
public AsynchronousAntn(Class<?> beanClass, Method method) {
AsynchronousAntn(Class<?> beanClass, Method method) {
super(beanClass, method);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -24,15 +24,15 @@
/**
* Class BulkheadAntn.
*/
public class BulkheadAntn extends MethodAntn implements Bulkhead {
class BulkheadAntn extends MethodAntn implements Bulkhead {

/**
* Constructor.
*
* @param beanClass Bean class.
* @param method The method.
*/
public BulkheadAntn(Class<?> beanClass, Method method) {
BulkheadAntn(Class<?> beanClass, Method method) {
super(beanClass, method);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
/**
* Class CircuitBreakerAntn.
*/
public class CircuitBreakerAntn extends MethodAntn implements CircuitBreaker {
class CircuitBreakerAntn extends MethodAntn implements CircuitBreaker {

/**
* Constructor.
*
* @param beanClass The bean class.
* @param method The method.
*/
public CircuitBreakerAntn(Class<?> beanClass, Method method) {
CircuitBreakerAntn(Class<?> beanClass, Method method) {
super(beanClass, method);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -35,5 +35,5 @@
@Retention(RUNTIME)
@Documented
@InterceptorBinding
public @interface CommandBinding {
@interface CommandBinding {
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@Interceptor
@CommandBinding
@Priority(Interceptor.Priority.PLATFORM_AFTER + 10)
public class CommandInterceptor {
class CommandInterceptor {

private static final Logger LOGGER = Logger.getLogger(CommandInterceptor.class.getName());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
/**
* Class FallbackAntn.
*/
public class FallbackAntn extends MethodAntn implements Fallback {
class FallbackAntn extends MethodAntn implements Fallback {

/**
* Constructor.
*
* @param beanClass Bean class.
* @param method The method.
*/
public FallbackAntn(Class<?> beanClass, Method method) {
FallbackAntn(Class<?> beanClass, Method method) {
super(beanClass, method);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,7 +21,7 @@
/**
* Class LiteralCommandBinding.
*/
public class LiteralCommandBinding extends AnnotationLiteral<CommandBinding> implements CommandBinding {
class LiteralCommandBinding extends AnnotationLiteral<CommandBinding> implements CommandBinding {
private static final long serialVersionUID = 1L;

private static final CommandBinding INSTANCE = new LiteralCommandBinding();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -29,7 +29,7 @@
/**
* Class MethodAntn.
*/
public abstract class MethodAntn {
abstract class MethodAntn {
private static final Logger LOGGER = Logger.getLogger(MethodAntn.class.getName());

private final Method method;
Expand Down Expand Up @@ -72,7 +72,7 @@ public A getAnnotation() {
* @param beanClass Bean class.
* @param method The method.
*/
public MethodAntn(Class<?> beanClass, Method method) {
MethodAntn(Class<?> beanClass, Method method) {
this.beanClass = beanClass;
this.method = method;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
* of this class is created for each method invocation. Some state is shared across
* all invocations of a method, including for circuit breakers and bulkheads.
*/
public class MethodInvoker implements FtSupplier<Object> {
class MethodInvoker implements FtSupplier<Object> {
private static final Logger LOGGER = Logger.getLogger(MethodInvoker.class.getName());

/**
Expand Down Expand Up @@ -283,7 +283,7 @@ public boolean cancel(boolean mayInterruptIfRunning) {
* @param context The invocation context.
* @param introspector The method introspector.
*/
public MethodInvoker(InvocationContext context, MethodIntrospector introspector) {
MethodInvoker(InvocationContext context, MethodIntrospector introspector) {
this.context = context;
this.introspector = introspector;
this.method = context.getMethod();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -25,15 +25,15 @@
/**
* Class RetryAntn.
*/
public class RetryAntn extends MethodAntn implements Retry {
class RetryAntn extends MethodAntn implements Retry {

/**
* Constructor.
*
* @param beanClass Bean class.
* @param method The method.
*/
public RetryAntn(Class<?> beanClass, Method method) {
RetryAntn(Class<?> beanClass, Method method) {
super(beanClass, method);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -25,15 +25,15 @@
/**
* Class TimeoutAntn.
*/
public class TimeoutAntn extends MethodAntn implements Timeout {
class TimeoutAntn extends MethodAntn implements Timeout {

/**
* Constructor.
*
* @param beanClass Bean class.
* @param method The method.
*/
public TimeoutAntn(Class<?> beanClass, Method method) {
TimeoutAntn(Class<?> beanClass, Method method) {
super(beanClass, method);
}

Expand Down