Skip to content

Commit

Permalink
8345876: Update nativeAddAtIndex comment to match the code
Browse files Browse the repository at this point in the history
Reviewed-by: azvegint, aivanov, psadhukhan, kizune
  • Loading branch information
saagarjha committed Dec 12, 2024
1 parent 75cfb64 commit 72c59de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.desktop/macosx/native/libawt_lwawt/awt/CMenuBar.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -438,7 +438,7 @@ + (void) addDefaultHelpMenu {
jlong menuBarObject, jlong menuObject, jint index)
{
JNI_COCOA_ENTER(env);
// Remove the specified item.
// Add the specified item.
[((CMenuBar *) jlong_to_ptr(menuBarObject)) javaAddMenu:(CMenu *) jlong_to_ptr(menuObject) atIndex:index];
JNI_COCOA_EXIT(env);
}
Expand Down

0 comments on commit 72c59de

Please sign in to comment.