@@ -268,11 +268,10 @@ private void step(Class<?> parent, String path, boolean initialize) throws Refle
268268
269269 // Get the route by combining the current path and the formatted key.
270270 String route = path + getRoute (clazz .getAnnotation (Key .class ), clazz .getSimpleName ());
271- boolean manual = clazz .isAnnotationPresent (Manual .class );
272271
273272 // Add the routes and recurse if we are in the initialization phase.
274273 if (initialize ) {
275- routes .put (route , manual );
274+ routes .put (route , false );
276275 step (clazz , route + "." , true );
277276 continue ;
278277 }
@@ -284,16 +283,13 @@ private void step(Class<?> parent, String path, boolean initialize) throws Refle
284283
285284 Section section = document .getSection (route );
286285
287- // Skip if the class is manual and the section already exists.
288- boolean skip = manual && section != null ;
289-
290286 // If the section doesn't exist and is not hidden, create it.
291287 if (section == null && !clazz .isAnnotationPresent (Hidden .class )) {
292288 section = document .createSection (route );
293289 }
294290
295291 // If the section exists, and we shouldn't skip, set the comment and recurse.
296- if (section != null && ! skip ) {
292+ if (section != null ) {
297293 document .setComment (section , clazz .getAnnotation (Comment .class ));
298294 step (clazz , route + "." , false );
299295 }
@@ -492,15 +488,6 @@ private String getRoute(Key key, String name) {
492488 protected @interface Hidden {
493489 }
494490
495- /**
496- * Used when dynamically reading values off the document (getString()),
497- * prevents the section from being touched by the unknown key remover.
498- */
499- @ Retention (RetentionPolicy .RUNTIME )
500- @ Target ({ElementType .TYPE })
501- protected @interface Manual {
502- }
503-
504491 @ Retention (RetentionPolicy .RUNTIME )
505492 @ Target ({ElementType .TYPE })
506493 public @interface Header {
0 commit comments