Skip to content

replace StringBuilder and string concatenation with text block - #1840

Merged
mergify[bot] merged 2 commits into
mainfrom
chore/replace-string-with-text-block
Nov 30, 2024
Merged

mergify[bot] merged 2 commits into
mainfrom
chore/replace-string-with-text-block

Conversation

@robfrank

Copy link
Copy Markdown
Collaborator

What does this PR do?

replace StringBuilder and string concatenation with text block

Motivation

Improve readability

Checklist

  • I have run the build using mvn clean package command
  • My unit tests cover both failure and success scenarios

@robfrank
robfrank requested a review from lvca November 25, 2024 21:10
@codacy-production

codacy-production Bot commented Nov 25, 2024

Copy link
Copy Markdown

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.69% 60.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (4121c59) 68101 43639 64.08%
Head commit (b548ea5) 68106 (+5) 43171 (-468) 63.39% (-0.69%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1840) 5 3 60.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

p.setJdbcInterceptors(
"org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;" + "org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer");
"""
org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;\

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What is the slash for? I see sometimes it's there, other times it's not.

@robfrank robfrank Nov 28, 2024

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

the resulting string, in this case, is a single line without \n, as it was before with concatenation

@mergify
mergify Bot merged commit d3d1fc5 into main Nov 30, 2024
@robfrank
robfrank deleted the chore/replace-string-with-text-block branch June 20, 2025 07:42
tae898 pushed a commit to humemai/arcadedb-embedded-python that referenced this pull request Jun 28, 2026
…ng-with-text-block

replace StringBuilder and string concatenation with text block
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.

2 participants