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

Implement new JDK12 method java.lang.String.indent(int) #4767

Merged
merged 1 commit into from
Feb 24, 2019

Conversation

sharon-wang
Copy link
Contributor

@sharon-wang sharon-wang commented Feb 16, 2019

Fixes: #3850.

Dependent on: #4105 test framework commit - sanity test for indent(int) will be moved to Java12andUp once it is available.

Signed-off-by: Sharon Wang sharon-wang-cpsc@outlook.com

@theresa-m
Copy link
Contributor

theresa-m commented Feb 16, 2019

you can change the pr description to include "Fixes: #3850" since this is the last change needed to finish the issue.

I'll give this a first review.

@sharon-wang sharon-wang force-pushed the indent-issue3850 branch 4 times, most recently from 2e9a4f3 to 61312ce Compare February 20, 2019 19:24
Copy link
Contributor

@theresa-m theresa-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm other than a small formatting change. @DanHeidinga or @pshipton can I ask one of you for a review?

Note this PR is dependent on the test framework commit in #4105 so that these tests can be moved to Java12andUp

jcl/src/java.base/share/classes/java/lang/String.java Outdated Show resolved Hide resolved
jcl/src/java.base/share/classes/java/lang/String.java Outdated Show resolved Hide resolved
@sharon-wang sharon-wang force-pushed the indent-issue3850 branch 2 times, most recently from 7da0723 to b08a715 Compare February 20, 2019 20:42
@sharon-wang sharon-wang changed the title WIP: Implement new JDK12 method java.lang.String.indent(int) Implement new JDK12 method java.lang.String.indent(int) Feb 20, 2019
@sharon-wang sharon-wang force-pushed the indent-issue3850 branch 7 times, most recently from 1d294c2 to 79ea0f5 Compare February 22, 2019 18:11
indent(int) adjusts the indentation of a string by adding or removing whitespace from the beginning of a string.

Signed-off-by: Sharon Wang <sharon-wang-cpsc@outlook.com>
@sharon-wang
Copy link
Contributor Author

@DanHeidinga should be good to go!

@DanHeidinga
Copy link
Member

Jenkins test sanity xlinux jdk12

@DanHeidinga
Copy link
Member

only build failure is the known com.ibm.j9.jsr292.api.MethodHandleAPI_defineClass.test_defineClass_ClassBytes_CorruptedArray issue

@DanHeidinga DanHeidinga merged commit d533309 into eclipse-openj9:master Feb 24, 2019
@DanHeidinga
Copy link
Member

Congrats @sharon-wang on your first OpenJ9 PR!

@sharon-wang sharon-wang deleted the indent-issue3850 branch March 6, 2019 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants