profile/src/main/java/org/apache/karaf/profile/assembly/FakeBundleRevision.java [122:156]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            switch (method.getName()) {
                case "hashCode":
                    return FakeBundleRevision.this.hashCode();
                case "equals":
                    return proxy == args[0];
                case "toString":
                    return bundle.getSymbolicName() + "/" + bundle.getVersion();
                case "adapt":
                    if (args.length == 1 && args[0] == BundleRevision.class) {
                        return FakeBundleRevision.this;
                    } else if (args.length == 1 && args[0] == BundleStartLevel.class) {
                        return FakeBundleRevision.this;
                    }
                    break;
                case "getHeaders":
                    return headers;
                case "getBundleId":
                    return bundleId;
                case "getLocation":
                    return location;
                case "getSymbolicName":
                    String name = headers.get(Constants.BUNDLE_SYMBOLICNAME);
                    int idx = name.indexOf(';');
                    if (idx > 0) {
                        name = name.substring(0, idx).trim();
                    }
                    return name;
                case "getVersion":
                    return new Version(headers.get(Constants.BUNDLE_VERSION));
                case "getState":
                    return Bundle.ACTIVE;
                case "getLastModified":
                    return 0l;
            }
            return null;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/VerifyMojo.java [718:752]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                            switch (method.getName()) {
                                case "hashCode":
                                    return FakeBundleRevision.this.hashCode();
                                case "equals":
                                    return proxy == args[0];
                                case "toString":
                                    return bundle.getSymbolicName() + "/" + bundle.getVersion();
                                case "adapt":
                                    if (args.length == 1 && args[0] == BundleRevision.class) {
                                        return FakeBundleRevision.this;
                                    } else if (args.length == 1 && args[0] == BundleStartLevel.class) {
                                        return FakeBundleRevision.this;
                                    }
                                    break;
                                case "getHeaders":
                                    return headers;
                                case "getBundleId":
                                    return bundleId;
                                case "getLocation":
                                    return location;
                                case "getSymbolicName":
                                    String name = headers.get(Constants.BUNDLE_SYMBOLICNAME);
                                    int idx = name.indexOf(';');
                                    if (idx > 0) {
                                        name = name.substring(0, idx).trim();
                                    }
                                    return name;
                                case "getVersion":
                                    return new Version(headers.get(Constants.BUNDLE_VERSION));
                                case "getState":
                                    return Bundle.ACTIVE;
                                case "getLastModified":
                                    return 0l;
                            }
                            return null;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



