Skip to content

Conversation

@instpe
Copy link
Contributor

@instpe instpe commented Jul 13, 2024

Fix #55

@Override
public CompletableFuture<Void> writeBatch(String database, List<Point> points) {
StringJoiner sj = new StringJoiner("\n");
StringJoiner sj = new StringJoiner(System.lineSeparator());
Copy link
Member

Choose a reason for hiding this comment

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

It's not platform independent, it's always \n

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We will roll back this piece of code.

if (trustManagers[0] instanceof X509TrustManager) {
x509TrustManager = (X509TrustManager) trustManagers[0];
} else {
throw new OpenGeminiException("The trust manager is not an instance of X509TrustManager");
Copy link
Member

Choose a reason for hiding this comment

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

I prefer to trhow IllegalStateException here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We will roll back this piece of code.

@instpe instpe force-pushed the fix_code_style branch 2 times, most recently from 8623f45 to c6709c0 Compare July 14, 2024 00:05
@hezhangjian hezhangjian changed the title fix: code style optimize fix: remove System.out and System.err call in tests Jul 14, 2024
@hezhangjian hezhangjian merged commit a4ba354 into openGemini:main Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not use System.out and System.err to print log

2 participants