# HG changeset patch # User serb # Date 1528166188 25200 # Node ID 93879c0753ecdd62f4c09238d81b32bcfbef2e8c # Parent 544cb09baada98513ce8a0807b8319fb0d4454c1 8204118: [macos] Nonsensical self == [super init] in CFileDialog.m Reviewed-by: kaddepalli, sveerabhadra diff -r 544cb09baada -r 93879c0753ec src/java.desktop/macosx/native/libawt_lwawt/awt/CFileDialog.m --- a/src/java.desktop/macosx/native/libawt_lwawt/awt/CFileDialog.m Mon Jun 04 19:01:16 2018 -0700 +++ b/src/java.desktop/macosx/native/libawt_lwawt/awt/CFileDialog.m Mon Jun 04 19:36:28 2018 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2018, 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 @@ -46,7 +46,7 @@ canChooseDirectories:(BOOL)inChooseDirectories withEnv:(JNIEnv*)env; { - if (self == [super init]) { + if (self = [super init]) { fHasFileFilter = inHasFilter; fFileDialog = JNFNewGlobalRef(env, inDialog); fDirectory = inPath; @@ -92,7 +92,7 @@ - (void)safeSaveOrLoad { NSSavePanel *thePanel = nil; - /* + /* * 8013553: turns off extension hiding for the native file dialog. * This way is used because setExtensionHidden(NO) doesn't work * as expected.