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

Fix Sonar major issues #729

Closed
wants to merge 14 commits into from
Closed

Fix Sonar major issues #729

wants to merge 14 commits into from

Conversation

yinlinchen
Copy link
Contributor

  • fixed string buffer for string appends
  • fixed static inner class
  • fixed Locale

Resolves: https://jira.duraspace.org/browse/FCREPO-1337

yinlinchen and others added 9 commits February 18, 2015 17:05
- fixed string buffer for string appends
- fixed static inner class
- fixed Locale

Resolves: https://jira.duraspace.org/browse/FCREPO-1337
@@ -354,7 +354,7 @@ private String doBackwardPathOnly(final FedoraResource resource) {
if (path != null) {

if (resource instanceof NonRdfSourceDescription) {
path = path + "/" + FCR_METADATA;
path += "/" + FCR_METADATA;
Copy link

Choose a reason for hiding this comment

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

The Sonar recommendation is to use a StringBuffer instead of String concatenation. Your update is a different syntax for the same String concatenation.
In any case, the performance impact of String concatenation is tolerable here, and no update is needed.

- fixed string buffer for string appends
- fixed static inner class
- fixed Locale

Resolves: https://jira.duraspace.org/browse/FCREPO-1337
… into fcrepo-1337

Conflicts:
	fcrepo-http-commons/src/main/java/org/fcrepo/http/commons/api/rdf/HttpResourceConverter.java
@yinlinchen yinlinchen closed this Feb 20, 2015
@yinlinchen yinlinchen deleted the fcrepo-1337 branch February 20, 2015 15:56
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.

None yet

3 participants