RESTWS-813: Compared strings using .equals instead of == and !=#448
RESTWS-813: Compared strings using .equals instead of == and !=#448insookwa wants to merge 7 commits intoopenmrs:masterfrom insookwa:RESTWS-813
Conversation
|
@insookwa Add a ticket Id to your commit,https://wiki.openmrs.org/display/docs/Pull+Request+Tips |
|
@insookwa Are you still working on it? |
|
oh, can I make another commit including the ticket ID to have this closed ? about the tests i added none @sacull |
Thanks @sacull i have made a rebase and edited the commit message . please review and revert |
revert or merge 😊 |
If so, only locally, because PR still contains commit from September. Additionally, there is some conflict, so you will have to resolve it. |
work in progress |
@sacull please en light me about the conflict . how can i solve it |
|
|
||
| if (operationName.equals("post") || operationName.equals("get")) { | ||
| // createDefinition(operationEnum, resourceName, resourceParentName, representation); | ||
|
|
||
| createDefinition(operationEnum, resourceName, resourceParentName, resourceHandler); |
There was a problem hiding this comment.
| if (operationName.equals("post") || operationName.equals("get")) { | |
| // createDefinition(operationEnum, resourceName, resourceParentName, representation); | |
| createDefinition(operationEnum, resourceName, resourceParentName, resourceHandler); | |
| if (operationName.equals("post") || operationName.equals("get")) { | |
| // createDefinition(operationEnum, resourceName, resourceParentName, representation); | |
| createDefinition(operationEnum, resourceName, resourceParentName, resourceHandler); |
Don't you think these blank lines are unnecessary?
There was a problem hiding this comment.
And is this code in the comment needed? Does it have any meaning for the source code?
f9c73bb to
2a4407f
Compare
|
|
||
|
|
||
| if (operationName == "post" || operationName == "get") { | ||
|
|
There was a problem hiding this comment.
| if (operationName == "post" || operationName == "get") { |
This fragment should be removed, otherwise, the code will not compile.
|
Hi @dkayiwa can I continue work on this issue. I see it cosed |





Description of what I changed
Issue I worked on
see https://issues.openmrs.org/browse/RESTWS-813
Checklist: I completed these to help reviewers :)
[ x] My pull request only contains ONE single commit
(the number above, next to the 'Commits' tab is 1).
No? -> read here on how to squash multiple commits into one
[x ] My IDE is configured to follow the code style of this project.
No? Unsure? -> configure your IDE, format the code and add the changes with
git add . && git commit --amendI have added tests to cover my changes. (If you refactored
existing code that was well tested you do not have to add tests)
No? -> write tests and add them to this commit
git add . && git commit --amend[ x] I ran
mvn clean packageright before creating this pull request andadded all formatting changes to my commit.
No? -> execute above command
[x ] All new and existing tests passed.
No? -> figure out why and add the fix to your commit. It is your responsibility to make sure your code works.
[ x] My pull request is based on the latest changes of the master branch.
No? Unsure? -> execute command
git pull --rebase upstream master