[Jiemamy-notify:2483] commit [3476] JiemamyFactory#newDataType() メソッドに、例外の記述漏れがあったので修正。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 8月 21日 (金) 00:08:38 JST


Revision: 3476
          http://sourceforge.jp/projects/jiemamy/svn/view?view=rev&revision=3476
Author:   daisuke_m
Date:     2009-08-21 00:08:38 +0900 (Fri, 21 Aug 2009)

Log Message:
-----------
JiemamyFactory#newDataType() メソッドに、例外の記述漏れがあったので修正。

Modified Paths:
--------------
    artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/internal/ArtemisJiemamyFactory.java

Modified: artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/internal/ArtemisJiemamyFactory.java
===================================================================
--- artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/internal/ArtemisJiemamyFactory.java	2009-08-20 15:07:58 UTC (rev 3475)
+++ artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/internal/ArtemisJiemamyFactory.java	2009-08-20 15:08:38 UTC (rev 3476)
@@ -138,7 +138,7 @@
 			BuiltinDataTypeMold builtinDataTypeMold = (BuiltinDataTypeMold) mold;
 			return (T) newBuiltinDataType(builtinDataTypeMold);
 		}
-		return null;
+		throw new IllegalArgumentException("unkwnon DataTypeMold: " + mold.getClass().getName());
 	}
 	
 	@SuppressWarnings("unchecked")




Jiemamy-notify メーリングリストの案内
Back to archive index