File tree Expand file tree Collapse file tree
resources/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,13 +181,13 @@ public void testDuplicateNatures() throws Throwable {
181181 assertHasEnabledNature (NATURE_SIMPLE );
182182
183183 // Try to set natures with a duplicate - this should not throw IllegalArgumentException
184- // The duplicate should be handled gracefully (validation will catch it later )
184+ // The duplicate should be handled gracefully (deduplication happens automatically )
185185 IProjectDescription desc = project .getDescription ();
186186 desc .setNatureIds (new String [] { NATURE_SIMPLE , NATURE_SIMPLE });
187- // This should not throw IllegalArgumentException
187+ // This should not throw IllegalArgumentException when hasPrivateChanges is called
188188 project .setDescription (desc , IResource .KEEP_HISTORY , createTestMonitor ());
189189
190- // The duplicate nature should have been detected by validation and only one instance should remain
190+ // After deduplication, only one instance of the nature should remain
191191 assertHasEnabledNature (NATURE_SIMPLE );
192192 }
193193
You can’t perform that action at this time.
0 commit comments