-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Minor fixes #9596
Minor fixes #9596
Conversation
altro3
commented
Jul 23, 2023
•
edited
Loading
edited
- Javadoc lint fixes
- Checkstyle fixes
- Some typos fixes
- Fixed some tests for different system locale
- Fixed minimal java release for inject-test JavaParser
- Added '--add-opens java.base/java.lang=ALL-UNNAMED' for correct work SystemLambda and '--add-opens jdk.compiler/com.sun.tools.javac.lang=ALL-UNNAMED' for kotlin in tests
- Fixed DefaultFileSystemResourceLoader normalize method for windows
d0258ce
to
74e81f9
Compare
* @author graemerocher | ||
* @since 1.0 | ||
*/ | ||
public interface ParametrizedProvider<T> extends Provider<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a breaking change we can't remove it even if it is not used until next major
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@graemerocher And how to be? Will this class be present in all releases up to version 5.0 now?
As far as I understand, you forgot to remove it when removed the ParametrizedBeanFactory
class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway I rolled back this change
ba448a0
to
bb4c76b
Compare
@sdelamo @dstepanov Hi! Could you review this changes? |
@@ -45,7 +45,7 @@ public enum ExecutorType { | |||
WORK_STEALING, | |||
|
|||
/** | |||
* @see java.util.concurrent.Executors#newThreadPerTaskExecutor() | |||
* @see io.micronaut.scheduling.LoomSupport#newThreadPerTaskExecutor(java.util.concurrent.ThreadFactory) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yawkat is this change in the javadoc correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no. the old one is correct. i assume it triggers a lint failure because it points to a method that is not available on java 17, but that's fine imo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yawkat hm... yes, it's true. But why it's Ok if we use java 17 and java 17 doesn't have this method in JDK ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this setting does not work on java 17 anyway. only on jdks where this method is available does it work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if there are such JDKs? ok i will revert this change
@@ -129,6 +129,9 @@ private static String normalize(String path) { | |||
} | |||
if (path.startsWith("file:")) { | |||
path = path.substring(5); | |||
if (path.startsWith("//")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change? can you add a test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem with pathes in windows.... Path like this //D:/Wok/....
is wrong
@@ -36,7 +36,7 @@ | |||
public sealed interface MultiObjectBody extends HttpBody permits ImmediateMultiObjectBody, ImmediateSingleObjectBody, StreamingMultiObjectBody { | |||
/** | |||
* Coerce this value to an {@link InputStream}. This implements | |||
* {@link io.micronaut.http.server.netty.binders.InputStreamBodyBinder}. Requires the objects | |||
* io.micronaut.http.server.netty.binders.NettyInputStreamBodyBinder. Requires the objects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove the @link
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...src/main/java/io/micronaut/http/server/netty/configuration/NettyHttpServerConfiguration.java
Outdated
Show resolved
Hide resolved
...src/main/kotlin/io/micronaut/annotation/processing/test/support/AbstractKotlinCompilation.kt
Outdated
Show resolved
Hide resolved
@@ -167,7 +167,7 @@ public JsonNode getCompletedValue() { | |||
} | |||
|
|||
@Override | |||
public void writeStartArray() throws IOException { | |||
public void writeStartArray() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why removing the throws
. Does not throw IOException anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to write exceptions from interface if your implementation don't throw them
jackson-databind/src/main/java/io/micronaut/jackson/databind/JacksonDatabindMapper.java
Outdated
Show resolved
Hide resolved
ef58fca
to
8ac9766
Compare
2. Checkstyle fixes 3. Some typos fixes 4. Fixed some tests for different system locale 5. Fixed minimal java release for inject-test JavaParser 6. Added '--add-opens java.base/java.lang=ALL-UNNAMED' for correct work SystemLambda and '--add-opens jdk.compiler/com.sun.tools.javac.lang=ALL-UNNAMED' for kotlin in tests 7. Fixed DefaultFileSystemResourceLoader normalize method for windows
8ac9766
to
3441ab6
Compare
aop/src/main/kotlin/io/micronaut/aop/util/KotlinInterceptedMethodHelper.kt
Show resolved
Hide resolved
...ite-helper/src/main/java/io/micronaut/testsuitehelper/TestGeneratingAnnotationProcessor.java
Show resolved
Hide resolved
Closing this as I think we have incorporated almost every suggestion. @altro3 please reopen separate prs if you think we need them. |