[dia] Bug 612131 - Java code creates incorrect modifiers



commit 11ee1d77255030e87f848db41dc233200bef39a1
Author: Hans Breuer <hans breuer org>
Date:   Thu Jul 29 21:06:57 2010 +0200

    Bug 612131  - Java code creates incorrect modifiers
    
    it was mapping the wrong numerical values for private and protected

 plug-ins/python/codegen.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/python/codegen.py b/plug-ins/python/codegen.py
index f80a4e9..0c87e98 100644
--- a/plug-ins/python/codegen.py
+++ b/plug-ins/python/codegen.py
@@ -386,7 +386,7 @@ class JavaRenderer(ObjRenderer) :
 	def end_render(self) :
 		f = open(self.filename, "w")
 		
-		visibilities = {0:"public", 2:"private", 1:"protected"}
+		visibilities = {0:"public", 1:"private", 2:"protected"}
 
 		for name, klass in self.klasses.iteritems() :
 			if len(klass.comment) > 0 :



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]