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

Adapt the formatting to remove unnecessary indent level #4957

Merged
merged 1 commit into from
Mar 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions runtime/vm/lookupmethod.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 1991, 2018 IBM Corp. and others
* Copyright (c) 1991, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -191,10 +191,10 @@ processMethod(J9VMThread * currentThread, UDATA lookupOptions, J9Method * method
*/
doVisibilityCheck = FALSE;
} else {
*exception = J9VMCONSTANTPOOL_JAVALANGILLEGALACCESSERROR;
*exceptionClass = methodClass;
*errorType = J9_VISIBILITY_NON_MODULE_ACCESS_ERROR;
return NULL;
*exception = J9VMCONSTANTPOOL_JAVALANGILLEGALACCESSERROR;
*exceptionClass = methodClass;
*errorType = J9_VISIBILITY_NON_MODULE_ACCESS_ERROR;
return NULL;
}
}
}
Expand All @@ -213,9 +213,9 @@ processMethod(J9VMThread * currentThread, UDATA lookupOptions, J9Method * method

/* Check that we find the right kind of method (static / virtual / interface) */

if (((lookupOptions & J9_LOOK_STATIC) && ((modifiers & J9AccStatic) == 0)) ||
((lookupOptions & J9_LOOK_VIRTUAL) && (modifiers & J9AccStatic)))
{
if (((lookupOptions & J9_LOOK_STATIC) && ((modifiers & J9AccStatic) == 0))
|| ((lookupOptions & J9_LOOK_VIRTUAL) && (modifiers & J9AccStatic))
) {
*exception = J9VMCONSTANTPOOL_JAVALANGINCOMPATIBLECLASSCHANGEERROR;
*exceptionClass = methodClass;
*errorType = J9_VISIBILITY_NON_MODULE_ACCESS_ERROR;
Expand Down Expand Up @@ -1071,8 +1071,8 @@ illegalAccessMessage(J9VMThread *currentThread, IDATA badMemberModifier, J9Class
* J9_VISIBILITY_MODULE_PACKAGE_EXPORT_ERROR
*/
if ((J9_VISIBILITY_NEST_HOST_LOADING_FAILURE_ERROR == errorType)
|| (J9_VISIBILITY_NEST_HOST_DIFFERENT_PACKAGE_ERROR == errorType)
|| (J9_VISIBILITY_NEST_MEMBER_NOT_CLAIMED_ERROR == errorType)
|| (J9_VISIBILITY_NEST_HOST_DIFFERENT_PACKAGE_ERROR == errorType)
|| (J9_VISIBILITY_NEST_MEMBER_NOT_CLAIMED_ERROR == errorType)
) {
J9Class *unverifiedNestMemberClass = NULL;
J9ROMClass *romClass = NULL;
Expand Down