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

message rosa #31

Open
wants to merge 1 commit into
base: graal-migration
Choose a base branch
from

Conversation

SoumyoNathTripathy
Copy link

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
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
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