Skip to content

Commit 72c59de

Browse files
committedDec 12, 2024
8345876: Update nativeAddAtIndex comment to match the code
Reviewed-by: azvegint, aivanov, psadhukhan, kizune
1 parent 75cfb64 commit 72c59de

File tree

1 file changed

+2
-2
lines changed
  • src/java.desktop/macosx/native/libawt_lwawt/awt

1 file changed

+2
-2
lines changed
 

‎src/java.desktop/macosx/native/libawt_lwawt/awt/CMenuBar.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -438,7 +438,7 @@ + (void) addDefaultHelpMenu {
438438
jlong menuBarObject, jlong menuObject, jint index)
439439
{
440440
JNI_COCOA_ENTER(env);
441-
// Remove the specified item.
441+
// Add the specified item.
442442
[((CMenuBar *) jlong_to_ptr(menuBarObject)) javaAddMenu:(CMenu *) jlong_to_ptr(menuObject) atIndex:index];
443443
JNI_COCOA_EXIT(env);
444444
}

0 commit comments

Comments
 (0)
Please sign in to comment.