From d7bf98354e2a71e3db5269a9809cd3679c99c4ae Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 4 Oct 2006 02:01:00 +0000 Subject: [PATCH] Match abstract classes as well. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4393 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/presents/tools/GenUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/presents/tools/GenUtil.java b/src/java/com/threerings/presents/tools/GenUtil.java index 81c30cfa4..bff4b6a62 100644 --- a/src/java/com/threerings/presents/tools/GenUtil.java +++ b/src/java/com/threerings/presents/tools/GenUtil.java @@ -48,7 +48,8 @@ public class GenUtil /** A regular expression for matching the class or interface * declaration. */ public static final Pattern NAME_PATTERN = - Pattern.compile("^\\s*public\\s+(interface|class)\\s+(\\S+)(\\W|$)"); + Pattern.compile("^\\s*public\\s+(?:abstract\\s+)?" + + "(interface|class)\\s+(\\S+)(\\W|$)"); /** * Returns the name of the supplied class as it would likely appear in code