changeset 50481:93879c0753ec

8204118: [macos] Nonsensical self == [super init] in CFileDialog.m Reviewed-by: kaddepalli, sveerabhadra
author serb
date Mon, 04 Jun 2018 19:36:28 -0700
parents 544cb09baada
children 18f8e3b6f3b7
files src/java.desktop/macosx/native/libawt_lwawt/awt/CFileDialog.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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.