From 12b0ce03d0029bb96bb23cc288ea351a8a1bec75 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 07 Dec 2007 17:36:12 +0000
Subject: [PATCH] This relates to issue 2661 "public APIs must not reference private classes".
---
opends/resource/Messages.java.stub | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/opends/resource/Messages.java.stub b/opends/resource/Messages.java.stub
index 95dc265..9a2c76d 100644
--- a/opends/resource/Messages.java.stub
+++ b/opends/resource/Messages.java.stub
@@ -36,12 +36,22 @@
* Directory Server source. It was dynamically generated as part of the
* Directory Server build process and should not be edited directly.
*/
-public class ${CLASS_NAME} {
+@org.opends.server.types.PublicAPI(
+ stability=org.opends.server.types.StabilityLevel.PRIVATE,
+ mayInstantiate=false,
+ mayExtend=false,
+ mayInvoke=true)
+public final class ${CLASS_NAME} {
/** Base property for resource bundle containing messages */
- static private final String BASE = "${BASE}";
+ private static final String BASE = "${BASE}";
- static private ClassLoader webstartClassLoader;
+ private static ClassLoader webstartClassLoader;
+
+ // Prevent instantiation.
+ private ${CLASS_NAME}() {
+ // Do nothing.
+ }
${MESSAGES}
@@ -64,7 +74,7 @@
{
try
{
- Class c = Class.forName("${PACKAGE}.${CLASS_NAME}");
+ Class<?> c = Class.forName("${PACKAGE}.${CLASS_NAME}");
java.net.URL[] urls = new java.net.URL[] {
c.getProtectionDomain().getCodeSource().getLocation()
--
Gitblit v1.10.0