Skip to content

message rosa#31

Open
SoumyoNathTripathy wants to merge 1 commit into
samagra-comms:graal-migrationfrom
SoumyoNathTripathy:master
Open

message rosa#31
SoumyoNathTripathy wants to merge 1 commit into
samagra-comms:graal-migrationfrom
SoumyoNathTripathy:master

Conversation

@SoumyoNathTripathy
Copy link
Copy Markdown

No description provided.

@chinmoy12c chinmoy12c changed the base branch from master to graal-migration August 2, 2023 12:02
Comment on lines -4 to +5
PAYLOAD_TO_LARGE("payloadTooLarge"),
EMPTY_RESPONSE("emptyResponse");
PAYLOAD_TO_LARGE("pay load Too Large"),
EMPTY_RESPONSE("empty Response");
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.

Why was this changed?

Comment on lines +80 to +102
int result = -1;
for (int i = start; i <= end; ++i) {
char c = text.charAt(i);
if (c == needle && precededByWhiteSpace(text, i, start) && !followedByWhitespace(text, i, end)) {
return -1; // new beginning
} else if (c == needle && !Character.isWhitespace(text.charAt(i - 1)) && followedByWhitespace(text, i, end)) {
return i;
} else if (c == '\n') {
return -1;

if (c == '\n') {
result = -1;
break;
}

boolean isNeedleChar = (c == needle);
boolean precededByWhitespace = precededByWhitespace(text, i, start);
boolean followedByWhitespace = followedByWhitespace(text, i, end);

if (isNeedleChar && precededByWhitespace && !followedByWhitespace) {
result = -1; // New beginning
break;
} else if (isNeedleChar && !Character.isWhitespace(text.charAt(i - 1)) && followedByWhitespace) {
result = i;
break;
}
}
return -1;

return result;
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.

These changes are not relevant to GraalVM migration please revert these back.

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