repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/tajo
1,125
tajo-core/src/main/java/org/apache/tajo/session/NoSuchSessionVariableException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tajo.session; import org.apache.tajo.error.Errors; import org.apache.tajo.exception.TajoException; public class NoSuchSessionVariableException extends TajoException { public NoSuchSessionVariableException(String varname) { super(Errors.ResultCode.NO_SUCH_SESSION_VARIABLE, varname); } }
apache/tapestry-5
1,097
tapestry-core/src/test/java/org/apache/tapestry5/integration/cluster/data/ImmutableByAnnotation.java
// Copyright 2011 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.integration.cluster.data; import org.apache.tapestry5.http.annotations.ImmutableSessionPersistedObject; @ImmutableSessionPersistedObject public class ImmutableByAnnotation implements SessionStateObject { private String value; public ImmutableByAnnotation(String value) { this.value = value; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }
apache/tapestry-5
1,105
tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/internal/services/SampleService.java
// Copyright 2004, 2005, 2006 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.ioc.test.internal.services; import org.apache.tapestry5.ioc.internal.services.FilterMethodAnalyzer; /** * Used by {@link org.apache.tapestry5.ioc.internal.services.FilterMethodAnalyzer}. */ public interface SampleService { public void simpleMatch(); public void mismatchParameterCount(); public String mismatchReturnType(); public void missingServiceInterface(); public void complexMatch(String title, int count, Runnable r); }
apache/teaclave-java-tee-sdk
1,105
sdk/enclave/src/test/java/org/apache/teaclave/javasdk/enclave/NativeImageTestable.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.teaclave.javasdk.enclave; import java.util.List; public interface NativeImageTestable { default void runWithNativeImageAgent(){} default void beforeSVMCompile(){} default void afterSVMCompile(){} default List<String> extraSVMOptions() { return null; } }
apache/tika
1,033
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/util/GuidUtil.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tika.parser.microsoft.onenote.fsshttpb.util; import java.util.UUID; public class GuidUtil { public static UUID emptyGuid() { return UUID.fromString("00000000-0000-0000-0000-000000000000"); } }
apache/tomee
1,063
arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/cmp/sample/LocalActor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.arquillian.tests.cmp.sample; import java.util.Collection; import jakarta.ejb.EJBLocalObject; public interface LocalActor extends EJBLocalObject { Integer getActorId(); String getName(); Collection getMovies(); }
apache/tomee
1,119
container/openejb-loader/src/main/java/org/apache/openejb/loader/WebAppClassPath.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.loader; public class WebAppClassPath extends TomcatClassPath { public WebAppClassPath() { this(getContextClassLoader()); } public WebAppClassPath(final ClassLoader classLoader) { super(classLoader); } @Override protected void rebuild() { } }
apache/tomee
1,121
container/openejb-core/src/test/java/org/apache/openejb/core/cmp/jpa/Person.java
/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.core.cmp.jpa; import jakarta.persistence.Entity; import jakarta.persistence.Id; @Entity public class Person { private String name; @Id public String getName() { return name; } public void setName(final String name) { this.name = name; } }
apache/tomee
1,125
itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/beans/Database.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.test.beans; import java.rmi.RemoteException; public interface Database extends jakarta.ejb.EJBObject { public void executeQuery(String statement) throws RemoteException, java.sql.SQLException; public boolean execute(String statement) throws RemoteException, java.sql.SQLException; }
apache/tomee
1,134
mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/bval/Generated.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tomee.microprofile.jwt.bval; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface Generated { String value(); }
apache/wicket
1,108
wicket-core-tests/src/test/java/org/apache/wicket/markup/resolver/SimplePage_4.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.markup.resolver; import org.apache.wicket.markup.html.WebPage; /** * Mock page for testing. * * @author Chris Turner */ public class SimplePage_4 extends WebPage { private static final long serialVersionUID = 1L; /** * Construct. */ public SimplePage_4() { } }
apache/wicket
1,108
wicket-core-tests/src/test/java/org/apache/wicket/markup/resolver/SimplePage_5.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.markup.resolver; import org.apache.wicket.markup.html.WebPage; /** * Mock page for testing. * * @author Chris Turner */ public class SimplePage_5 extends WebPage { private static final long serialVersionUID = 1L; /** * Construct. */ public SimplePage_5() { } }
apache/wicket
1,111
wicket-core-tests/src/test/java/org/apache/wicket/ajax/MockComponent1.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.ajax; import org.apache.wicket.markup.html.panel.Panel; /** * */ public class MockComponent1 extends Panel { private static final long serialVersionUID = 1L; /** * Construct. * * @param parent * @param id */ public MockComponent1(String id) { super(id); } }
apache/wicket
1,111
wicket-core-tests/src/test/java/org/apache/wicket/ajax/MockComponent2.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.ajax; import org.apache.wicket.markup.html.panel.Panel; /** * */ public class MockComponent2 extends Panel { private static final long serialVersionUID = 1L; /** * Construct. * * @param parent * @param id */ public MockComponent2(String id) { super(id); } }
google/binnavi
1,096
src/main/java/com/google/security/zynamics/binnavi/Gui/CriteriaDialog/Conditions/ICriteriumCreator.java
// Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.security.zynamics.binnavi.Gui.CriteriaDialog.Conditions; /** * Interface to be implemented by all classes that want to create criteria in the Select by Criteria * dialog. */ public interface ICriteriumCreator { /** * Creates a new criterium object. * * @return The new criterium object. */ ICriterium createCriterium(); /** * Returns the criterium description. * * @return A string that describes the criterium. */ String getCriteriumDescription(); }
google/copybara
1,150
java/com/google/copybara/version/VersionResolver.java
/* * Copyright (C) 2022 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.copybara.version; import com.google.copybara.ConfigItemDescription; import com.google.copybara.exception.ValidationException; import com.google.copybara.revision.Revision; import java.util.Optional; import java.util.function.Function; import net.starlark.java.eval.StarlarkValue; /** Takes a ref and resolves it to the repository */ public interface VersionResolver extends StarlarkValue, ConfigItemDescription { Revision resolve(String ref, Function<String, Optional<String>> assemblyStrategy) throws ValidationException; }
google/exposure-notifications-android
1,090
app/src/main/java/com/google/android/apps/exposurenotification/slices/SlicesModule.java
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package com.google.android.apps.exposurenotification.slices; import dagger.BindsOptionalOf; import dagger.Module; import dagger.hilt.InstallIn; import dagger.hilt.components.SingletonComponent; /** * Module that provides a SlicePermissionManager. V2 does not use slices, so we declare it with * BindsOptionalOf. */ @Module @InstallIn(SingletonComponent.class) public abstract class SlicesModule { @BindsOptionalOf abstract SlicePermissionManager provideSlicePermissionManager(); }
google/gdata-java-client
1,130
java/src/com/google/gdata/data/health/HealthLink.java
/* Copyright (c) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.gdata.data.health; /** * Extends the base Link class with Health extensions. * * */ public class HealthLink { /** Link relation type. */ public static final class Rel { /** Complete url of an entry, indicating the smallest feed containing the * entry. */ public static final String HTTP_SCHEMAS_GOOGLE_COM_HEALTH_DATA_COMPLETE = "http://schemas.google.com/health/data#complete"; } /** Private constructor to ensure class is not instantiated. */ private HealthLink() {} }
google/j2objc
1,089
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/util/UResourceTypeMismatchException.java
/* GENERATED SOURCE. DO NOT MODIFY. */ // © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html#License /* ****************************************************************************** * Copyright (C) 2004-2006, International Business Machines Corporation and * * others. All Rights Reserved. * ****************************************************************************** */ package android.icu.util; /** * Exception thrown when the requested resource type * is not the same type as the available resource * @author ram * @hide Only a subset of ICU is exposed in Android */ public class UResourceTypeMismatchException extends RuntimeException { // Generated by serialver from JDK 1.4.1_01 static final long serialVersionUID = 1286569061095434541L; /** * Constuct the exception with the given message * @param msg the error message for this exception */ public UResourceTypeMismatchException(String msg){ super(msg); } }
google/perfetto
1,122
src/java_sdk/main/java/com/google/perfetto/sdk/PerfettoExampleWrapper.java
/* * Copyright (C) 2025 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.perfetto.sdk; import dalvik.annotation.optimization.CriticalNative; public class PerfettoExampleWrapper { static { System.loadLibrary("perfetto_jni_wrapper_lib"); } public static int doRunPerfettoMain(String outputFilePath) { return new PerfettoExampleWrapper().runPerfettoMain(outputFilePath); } private native int runPerfettoMain(String outputFilePath); @CriticalNative public static native int incrementIntCritical(int value); }
googleads/googleads-mobile-android-mediation
1,076
ThirdPartyAdapters/unity/unity/src/main/java/com/google/ads/mediation/unity/UnityAdsWrapper.java
package com.google.ads.mediation.unity; import android.content.Context; import com.unity3d.ads.IUnityAdsInitializationListener; import com.unity3d.ads.IUnityAdsTokenListener; import com.unity3d.ads.TokenConfiguration; import com.unity3d.ads.UnityAds; import com.unity3d.ads.metadata.MediationMetaData; /** Wrapper class for {@link UnityAds} */ class UnityAdsWrapper { public void initialize(Context context, String gameId, IUnityAdsInitializationListener listener) { UnityAds.initialize(context, gameId, false, listener); } public boolean isInitialized() { return UnityAds.isInitialized(); } public String getVersion() { return UnityAds.getVersion(); } public MediationMetaData getMediationMetaData(Context context) { return new MediationMetaData(context); } public void getToken(IUnityAdsTokenListener tokenListener) { UnityAds.getToken(tokenListener); } public void getToken( TokenConfiguration tokenConfiguration, IUnityAdsTokenListener tokenListener) { UnityAds.getToken(tokenConfiguration, tokenListener); } }
googleapis/google-cloud-java
1,035
java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/RestrictAllowedResourcesResponseOrBuilder.java
/* * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/assuredworkloads/v1/assuredworkloads.proto // Protobuf Java Version: 3.25.8 package com.google.cloud.assuredworkloads.v1; public interface RestrictAllowedResourcesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1.RestrictAllowedResourcesResponse) com.google.protobuf.MessageOrBuilder {}
googlearchive/gwt-google-apis
1,113
maps/maps/src/com/google/gwt/maps/client/geocode/DirectionsPanel.java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.maps.client.geocode; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.Widget; /** * A widget that holds the formatted directions retrieved from a * {@link Directions} query. * * @see DirectionQueryOptions#DirectionQueryOptions(com.google.gwt.maps.client.MapWidget, * DirectionsPanel) */ public class DirectionsPanel extends Widget { /** * Constructs a new directions panel. */ public DirectionsPanel() { setElement(DOM.createDiv()); } }
googlearchive/science-journal
1,050
OpenScienceJournal/whistlepunk_library/src/main/java/com/google/android/apps/forscience/whistlepunk/sensorapi/WriteableSensorOptions.java
/* * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.android.apps.forscience.whistlepunk.sensorapi; /** Writeable interface for sensor options. */ public interface WriteableSensorOptions { /** * @return an interface for reading the options from this bundle of options, without the * possibility of changing them */ ReadableSensorOptions getReadOnly(); /** * @param key * @param value */ void put(String key, String value); }
hibernate/hibernate-ogm
1,051
core/src/test/java/org/hibernate/ogm/backendtck/associations/onetoone/Husband.java
/* * Hibernate OGM, Domain model persistence for NoSQL datastores * * License: GNU Lesser General Public License (LGPL), version 2.1 or later * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.ogm.backendtck.associations.onetoone; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.OneToOne; /** * @author Emmanuel Bernard */ @Entity public class Husband { private String id; private String name; private Wife wife; public Husband() { } public Husband(String id) { this.id = id; } @Id public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } @OneToOne(fetch = FetchType.LAZY) @JoinColumn(name = "wife") public Wife getWife() { return wife; } public void setWife(Wife wife) { this.wife = wife; } }
hibernate/hibernate-orm
1,044
hibernate-community-dialects/src/test/java/org/hibernate/community/dialect/unit/sequence/DB2400SequenceInformationExtractorTest.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.community.dialect.unit.sequence; import org.hibernate.community.dialect.DB2iLegacyDialect; import org.hibernate.dialect.Dialect; import org.hibernate.orm.test.dialect.unit.sequence.AbstractSequenceInformationExtractorTest; import org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorNoOpImpl; import org.hibernate.tool.schema.extract.spi.SequenceInformationExtractor; import org.hibernate.testing.orm.junit.JiraKey; /** * @author Andrea Boriero */ @JiraKey(value = "HHH-11470") public class DB2400SequenceInformationExtractorTest extends AbstractSequenceInformationExtractorTest { @Override public Dialect getDialect() { return new DB2iLegacyDialect(); } @Override public String expectedQuerySequencesString() { return null; } @Override public Class<? extends SequenceInformationExtractor> expectedSequenceInformationExtractor() { return SequenceInformationExtractorNoOpImpl.class; } }
hibernate/hibernate-orm
1,068
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/onetoone/Person.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.orm.test.annotations.onetoone; import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.Id; import jakarta.persistence.OneToOne; import jakarta.persistence.PrimaryKeyJoinColumn; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Parameter; /** * @author Emmanuel Bernard * @author Gail Badner */ @Entity public class Person { @Id @GeneratedValue(generator = "fk") @GenericGenerator(strategy = "foreign", name = "fk", parameters = @Parameter(name="property", value="personAddress")) private Integer id; @PrimaryKeyJoinColumn @OneToOne(optional=true) private PersonAddress personAddress; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public PersonAddress getPersonAddress() { return personAddress; } public void setPersonAddress(PersonAddress personAddress) { this.personAddress = personAddress; } }
hibernate/hibernate-orm
1,088
hibernate-core/src/main/java/org/hibernate/metamodel/mapping/DiscriminatorValueDetails.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.metamodel.mapping; /** * Details for a particular discriminator value. * * @apiNote For {@linkplain jakarta.persistence.InheritanceType#JOINED joined} and * {@linkplain jakarta.persistence.InheritanceType#TABLE_PER_CLASS union} inheritance, * the discriminator also effectively indicates a specific table. That table can be * found via {@linkplain EntityMappingType#getMappedTableDetails()} for the * {@linkplain #getIndicatedEntity() indicated entity} * * @see jakarta.persistence.DiscriminatorValue */ public interface DiscriminatorValueDetails { /** * The discriminator value */ Object getValue(); /** * The name of the concrete entity-type mapped to this {@linkplain #getValue() discriminator value} */ default String getIndicatedEntityName() { return getIndicatedEntity().getEntityName(); } /** * Form of {@link #getIndicatedEntityName()} returning the matched {@link EntityMappingType} */ EntityMappingType getIndicatedEntity(); }
hibernate/hibernate-shards
1,127
src/main/java/org/hibernate/shards/query/SetReadOnlyEvent.java
/** * Copyright (C) 2007 Google Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ package org.hibernate.shards.query; import org.hibernate.Query; /** * @author Maulik Shah */ public class SetReadOnlyEvent implements QueryEvent { private final boolean readOnly; public SetReadOnlyEvent(boolean readOnly) { this.readOnly = readOnly; } public void onEvent(Query query) { query.setReadOnly(readOnly); } }
openjdk/jdk8
1,136
langtools/test/com/sun/javadoc/testPackageDeprecation/pkg1/package-info.java
/* * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /** * Test pkg1 used. * @deprecated This package is Deprecated. */ package pkg1;
openjdk/jdk8
1,146
langtools/test/tools/javac/diags/examples/FloatNumberTooLarge.java
/* * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ // key: compiler.err.fp.number.too.large class FloatNumberTooLarge { float f = 1e9999; }
openjdk/jdk8
1,148
langtools/test/tools/javac/generics/typevars/5061359/Intf.java
/* * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ interface Intf { static final String C1 = "BLAH"; static class Inner{} void m1(); }
openjdk/jdk8
1,151
langtools/test/com/sun/javadoc/testPrivateClasses/pkg2/C.java
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package pkg2; public class C implements I<String> { public void hello(String param) { } }
openjdk/jdk8
1,165
jdk/test/java/lang/annotation/loaderLeak/A.java
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @interface A { B b(); }
oracle/coherence
1,115
prj/coherence-testing-data/src/main/java/data/pof/PortablePersonLite.java
/* * Copyright (c) 2000, 2022, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package data.pof; import java.io.IOException; import java.util.Date; import com.tangosol.io.pof.PofReader; import com.tangosol.io.pof.PofWriter; import com.tangosol.io.pof.PortableObject; public class PortablePersonLite extends PersonLite implements PortableObject { public PortablePersonLite() { } public PortablePersonLite(String sName, Date dtDOB) { super(sName, dtDOB); } public void readExternal(PofReader reader) throws IOException { m_sName = reader.readString(0); m_dtDOB = reader.readDate(2); } public void writeExternal(PofWriter writer) throws IOException { writer.writeString(0, m_sName); writer.writeObject(1, null); writer.writeDateTime(2, m_dtDOB); writer.writeObject(3, null); writer.writeObjectArray(4, null, null); } }
oracle/nosql
1,132
kvmain/src/main/java/oracle/kv/impl/async/ListeningChannelErrorHandler.java
/*- * Copyright (C) 2011, 2025 Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle NoSQL * Database made available at: * * http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html * * Please see the LICENSE file included in the top-level directory of the * appropriate version of Oracle NoSQL Database for a copy of the license and * additional information. */ package oracle.kv.impl.async; /** * An interface for handling errors for a listening channel. */ public interface ListeningChannelErrorHandler { /** * Called when some error/exception occurred to the listening channel. The * default implementation does nothing. * * @param listenConfig the listener config used for the channel when * listening * @param cause the cause * @param channelClosed {@code true} if the channel is closed */ default void onChannelError(ListenerConfig listenConfig, Throwable cause, boolean channelClosed) { } }
apache/commons-math
1,102
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/Clusterable.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.math4.legacy.ml.clustering; /** * Interface for n-dimensional points that can be clustered together. * @since 3.2 */ public interface Clusterable { /** * Gets the n-dimensional point. * * @return the point array */ double[] getPoint(); }
apache/ctakes
1,109
ctakes-ytex/src/main/java/org/apache/ctakes/ytex/kernel/model/ObjPair.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.ctakes.ytex.kernel.model; public class ObjPair<T1 extends Object, T2 extends Object> { @Override public String toString() { return "ObjPair [v1=" + v1 + ", v2=" + v2 + "]"; } public T1 v1; public T2 v2; public ObjPair(T1 v1, T2 v2) { this.v1 = v1; this.v2 = v2; } }
apache/cxf
1,127
rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/JAXBContextProvider.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.jaxrs; import jakarta.ws.rs.Produces; import jakarta.ws.rs.ext.ContextResolver; import jakarta.xml.bind.JAXBContext; @Produces("text/xml+a") public class JAXBContextProvider implements ContextResolver<JAXBContext> { public JAXBContext getContext(Class<?> type) { return null; } }
apache/cxf
1,134
systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/base/package-info.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ @jakarta.xml.bind.annotation.XmlSchema( namespace = "http://cxf.apache.org/systest/jaxws/base", attributeFormDefault = jakarta.xml.bind.annotation.XmlNsForm.UNQUALIFIED, elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED) package org.apache.cxf.systest.jaxws.base;
apache/cxf
1,139
core/src/main/java/org/apache/cxf/transport/MessageObserver.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.transport; import org.apache.cxf.message.Message; /** * Observer for incoming messages. */ public interface MessageObserver { /** * Called for an incoming message, i.e. where the content format(s) * is/are source(s). * * @param message */ void onMessage(Message message); }
apache/cxf
1,147
core/src/main/java/org/apache/cxf/transport/Assertor.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.transport; import javax.xml.namespace.QName; import org.apache.cxf.message.Message; /** * API used in the to allow a message exchange participant to * assert its capabilities for the underlying message. */ public interface Assertor { void assertMessage(Message message); boolean canAssert(QName type); }
apache/daffodil
1,130
daffodil-core/src/main/java/org/apache/daffodil/api/DataLocation.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.daffodil.api; /** * Relevant data location for a diagnostic message. E.g., file and line number. */ public interface DataLocation { String toString(); /** * @return current bit position 1 based */ long bitPos1b(); /** * @return current byte position 1 based */ long bytePos1b(); }
apache/deltaspike
1,069
deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/mock/uc015/InterceptedBeanMethodLevel.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.deltaspike.test.testcontrol.mock.uc015; import jakarta.enterprise.context.RequestScoped; @RequestScoped public class InterceptedBeanMethodLevel { @TestInterceptor public void test() { //do nothing - any method is fine } }
apache/deltaspike
1,083
deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/spi/descriptor/xml/MappedSuperclass.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.deltaspike.test.jpa.spi.descriptor.xml; public class MappedSuperclass extends MappedId { private Long counter; public Long getCounter() { return counter; } public void setCounter(Long id) { this.counter = id; } }
apache/deltaspike
1,112
deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/config/ConfigSnapshot.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.deltaspike.core.api.config; /** * A value holder for TypedResolver values which all got resolved in a guaranteed atomic way. * * @see Config#snapshotFor(ConfigResolver.TypedResolver[]) * @see ConfigResolver.TypedResolver#getValue(ConfigSnapshot) */ public interface ConfigSnapshot { }
apache/derby
1,126
java/org.apache.derby.engine/org/apache/derby/iapi/db/DatabaseContext.java
/* Derby - Class org.apache.derby.iapi.db.DatabaseContext Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.apache.derby.iapi.db; import org.apache.derby.iapi.services.context.Context; /** A context for a database. */ public interface DatabaseContext extends Context { public static final String CONTEXT_ID = "Database"; public Database getDatabase(); }
apache/directory-kerby
1,109
kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/kdc/TgsReq.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.kerby.kerberos.kerb.type.kdc; import org.apache.kerby.kerberos.kerb.type.base.KrbMessageType; /** TGS-REQ ::= [APPLICATION 12] KDC-REQ */ public class TgsReq extends KdcReq { public TgsReq() { super(KrbMessageType.TGS_REQ); } }
apache/doris-manager
1,060
manager/general/src/main/java/org/apache/doris/stack/exception/DorisUserNoPermissionException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.exception; public class DorisUserNoPermissionException extends Exception { public static final String MESSAGE = "用户不具备集群Admin权限,请更换其他具备权限用户"; public DorisUserNoPermissionException() { super(MESSAGE); } }
apache/druid
1,108
server/src/test/java/org/apache/druid/server/coordinator/config/KillUnusedSegmentsConfigTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.server.coordinator.config; import nl.jqno.equalsverifier.EqualsVerifier; import org.junit.Test; public class KillUnusedSegmentsConfigTest { @Test public void test_equals() { EqualsVerifier.forClass(KillUnusedSegmentsConfig.class).usingGetClass().verify(); } }
apache/druid
1,126
sql/src/test/java/org/apache/druid/sql/calcite/planner/ColumnMappingTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.sql.calcite.planner; import nl.jqno.equalsverifier.EqualsVerifier; import org.junit.Test; public class ColumnMappingTest { @Test public void testEquals() { EqualsVerifier.simple().forClass(ColumnMapping.class) .usingGetClass() .verify(); } }
apache/dubbo-samples
1,040
2-advanced/dubbo-samples-triple-rest/dubbo-samples-triple-rest-openapi-generator/src/test/java/org/apache/dubbo/rest/demo/OpenApiGeneratorApplicationTests.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.rest.demo; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class OpenApiGeneratorApplicationTests { @Test void contextLoads() { } }
apache/dubbo
1,096
dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/api/ProvidedByDemoService3.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.config.spring.api; import org.apache.dubbo.config.annotation.ProvidedBy; /** * DemoService */ @ProvidedBy(name = {"provided-demo-service-interface1", "provided-demo-service-interface2"}) public interface ProvidedByDemoService3 { String sayName(String name); }
apache/dubbo
1,128
dubbo-common/src/main/java/org/apache/dubbo/common/context/LifecycleAdapter.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.common.context; public abstract class LifecycleAdapter implements Lifecycle { @Override public void initialize() throws IllegalStateException {} @Override public void start() throws IllegalStateException {} @Override public void destroy() throws IllegalStateException {} }
apache/eagle
1,115
eagle-core/eagle-common/src/main/java/org/apache/eagle/common/function/ThrowableFunction.java
package org.apache.eagle.common.function; /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ @FunctionalInterface public interface ThrowableFunction<T, R, E extends Throwable> { /** * Applies this function to the given argument. * * @param t the function argument * @return the function result */ R apply(T t) throws E; }
apache/eventmesh
1,100
eventmesh-admin-server/src/main/java/org/apache/eventmesh/admin/server/AdminServerRuntimeException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.eventmesh.admin.server; import lombok.Getter; @Getter public class AdminServerRuntimeException extends RuntimeException { private final int code; public AdminServerRuntimeException(int code, String message) { super(message); this.code = code; } }
apache/fineract
1,089
fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/service/SavingsAccrualWritePlatformService.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.portfolio.savings.service; import java.time.LocalDate; import org.apache.fineract.infrastructure.core.exception.MultiException; public interface SavingsAccrualWritePlatformService { void addAccrualEntries(LocalDate tillDate) throws MultiException; }
apache/fineract
1,102
fineract-core/src/main/java/org/apache/fineract/accounting/journalentry/data/AdvancedMappingtDTO.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.accounting.journalentry.data; import java.math.BigDecimal; import lombok.Getter; import lombok.RequiredArgsConstructor; @RequiredArgsConstructor @Getter public class AdvancedMappingtDTO { private final Long referenceValueId; private final BigDecimal amount; }
apache/fineract
1,110
fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/data/AmortizationType.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.test.data; public enum AmortizationType { EQUAL_PRINCIPAL_PAYMENTS(0), // EQUAL_INSTALLMENTS(1); // public final Integer value; AmortizationType(Integer value) { this.value = value; } public Integer getValue() { return value; } }
apache/fineract
1,118
fineract-provider/src/main/java/org/apache/fineract/adhocquery/domain/AdHocRepository.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.adhocquery.domain; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; public interface AdHocRepository extends JpaRepository<AdHoc, Long>, JpaSpecificationExecutor<AdHoc> { // no added behaviour }
apache/flink
1,108
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/lineage/DatasetSchemaField.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.flink.streaming.api.lineage; import org.apache.flink.annotation.PublicEvolving; /** Field for schema in dataset. */ @PublicEvolving public interface DatasetSchemaField<T> { /** The name of the field. */ String name(); /** The type of the field. */ T type(); }
apache/flink
1,122
flink-runtime/src/main/java/org/apache/flink/runtime/messages/checkpoint/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * This package contains the messages that are sent between {@link * org.apache.flink.runtime.jobmaster.JobMaster} and {@link * org.apache.flink.runtime.taskexecutor.TaskExecutor} to coordinate the checkpoint snapshots of the * distributed dataflow. */ package org.apache.flink.runtime.messages.checkpoint;
apache/geode
1,119
geode-core/src/main/java/org/apache/geode/internal/cache/execute/InternalResultSender.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.apache.geode.internal.cache.execute; import org.apache.geode.cache.execute.ResultSender; public interface InternalResultSender extends ResultSender<Object> { void enableOrderedResultStreming(boolean enable); boolean isLocallyExecuted(); boolean isLastResultReceived(); void setException(Throwable t); }
apache/giraph
1,123
giraph-core/src/main/java/org/apache/giraph/types/ByteWritableToByteUnwrapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.giraph.types; import org.apache.hadoop.io.ByteWritable; /** * Converts ByteWritables to Bytes */ public class ByteWritableToByteUnwrapper implements WritableUnwrapper<ByteWritable, Byte> { @Override public Byte unwrap(ByteWritable writableValue) { return writableValue.get(); } }
apache/giraph
1,123
giraph-core/src/main/java/org/apache/giraph/types/LongWritableToLongUnwrapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.giraph.types; import org.apache.hadoop.io.LongWritable; /** * Converts LongWritables to Longs */ public class LongWritableToLongUnwrapper implements WritableUnwrapper<LongWritable, Long> { @Override public Long unwrap(LongWritable writableValue) { return writableValue.get(); } }
apache/grails-core
1,108
grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/graph/GraphDatastore.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.grails.datastore.mapping.graph; import org.grails.datastore.mapping.core.Datastore; /** * Marker interface for a Datastore that is a Graph * * @author Guillaume Laforge * @author Graeme Rocher * * @since 1.0 */ public interface GraphDatastore extends Datastore {}
apache/hadoop
1,031
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-globalpolicygenerator/src/main/java/org/apache/hadoop/yarn/server/globalpolicygenerator/webapp/package-info.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Classes comprising the policy generator for the GPG. Responsibilities include * generating and updating policies based on the cluster status. */ package org.apache.hadoop.yarn.server.globalpolicygenerator.webapp;
apache/hadoop
1,106
hadoop-common-project/hadoop-registry/src/main/java/org/apache/hadoop/registry/server/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Server-side classes for the registry * <p> * These are components intended to be deployed only on servers or in test * JVMs, rather than on client machines. * <p> * Example components are: server-side ZK support, a REST service, etc. */ package org.apache.hadoop.registry.server;
apache/harmony
1,112
classlib/modules/awt/src/main/java/common/java/awt/datatransfer/UnsupportedFlavorException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package java.awt.datatransfer; public class UnsupportedFlavorException extends Exception { private static final long serialVersionUID = 5383814944251665601L; public UnsupportedFlavorException(DataFlavor flavor) { super("flavor = " + String.valueOf(flavor)); //$NON-NLS-1$ } }
apache/hbase
1,123
hbase-hadoop-compat/src/main/java/org/apache/hadoop/metrics2/MetricsExecutor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.metrics2; import java.util.concurrent.ScheduledExecutorService; import org.apache.yetus.audience.InterfaceAudience; /** * ScheduledExecutorService for metrics. */ @InterfaceAudience.Private public interface MetricsExecutor { ScheduledExecutorService getExecutor(); void stop(); }
apache/hbase
1,125
hbase-server/src/main/java/org/apache/hadoop/hbase/master/ClusterSchemaService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hbase.master; import org.apache.yetus.audience.InterfaceAudience; import org.apache.hbase.thirdparty.com.google.common.util.concurrent.Service; /** * Mixes in ClusterSchema and Service */ @InterfaceAudience.Private public interface ClusterSchemaService extends ClusterSchema, Service { }
apache/hive
1,095
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/annotation/MetastoreUnitTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hive.metastore.annotation; /** * Marker interface for all faster running metastore unit tests. Tests (and only tests) marked * with this interface will be run as the default for 'mvn test'. */ public interface MetastoreUnitTest extends MetastoreTest { }
apache/hive
1,134
common/src/java/org/apache/hadoop/hive/common/jsonexplain/JsonParser.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hive.common.jsonexplain; import java.io.PrintStream; import org.json.JSONObject; /** * JsonParser is the interface for classes that print a JSONObject * into outputStream. */ public interface JsonParser { public void print(JSONObject inputObject, PrintStream outputStream) throws Exception; }
apache/hive
1,148
ql/src/java/org/apache/hadoop/hive/ql/io/orc/Writer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hive.ql.io.orc; import java.io.IOException; /** * The HIVE interface for writing ORC files. */ public interface Writer extends org.apache.orc.Writer { /** * Add a row to the end of the ORC file. * @param row the row to add * @throws IOException */ void addRow(Object row) throws IOException; }
apache/hop
1,132
plugins/tech/aws/src/main/java/org/apache/hop/vfs/s3/s3a/vfs/S3AFileObject.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hop.vfs.s3.s3a.vfs; import org.apache.commons.vfs2.provider.AbstractFileName; import org.apache.hop.vfs.s3.s3common.S3CommonFileObject; public class S3AFileObject extends S3CommonFileObject { S3AFileObject(final AbstractFileName name, final S3AFileSystem fileSystem) { super(name, fileSystem); } }
apache/hudi
1,106
hudi-client/hudi-client-common/src/test/java/org/apache/hudi/testutils/providers/DFSProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.hudi.testutils.providers; import org.apache.hudi.storage.HoodieStorage; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hdfs.MiniDFSCluster; public interface DFSProvider { MiniDFSCluster dfsCluster(); HoodieStorage hoodieStorage(); Path dfsBasePath(); }
apache/ignite-extensions
1,103
modules/hibernate-ext/hibernate/src/main/java/org/apache/ignite/cache/hibernate/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * <!-- Package description. --> * Contains implementation of Hibernate L2 cache. Refer to * <i>org.apache.ignite.examples.datagrid.hibernate.HibernateL2CacheExample</i> for more information on how to * configure and use Ignite with Hibernate. */ package org.apache.ignite.cache.hibernate;
apache/ignite-extensions
1,103
modules/ml-ext/ml/src/main/java/org/apache/ignite/ml/math/functions/IgniteDoubleFunction.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.ml.math.functions; import java.io.Serializable; import java.util.function.DoubleFunction; /** * Serializable double function. * * @see java.util.function.DoubleFunction */ public interface IgniteDoubleFunction<Double> extends DoubleFunction<Double>, Serializable { }
apache/ignite
1,124
modules/core/src/main/java/org/apache/ignite/spi/discovery/IgniteDiscoveryThread.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.spi.discovery; import org.apache.ignite.internal.util.worker.GridWorker; /** * Marker interface for discovery thread on cluster server node. */ public interface IgniteDiscoveryThread { /** @return {@link GridWorker} instance associated with current thread. */ GridWorker worker(); }
apache/incubator-brooklyn
1,096
brooklyn-server/policy/src/main/java/org/apache/brooklyn/policy/loadbalancing/LocationConstraint.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.brooklyn.policy.loadbalancing; import org.apache.brooklyn.api.location.Location; /** * Temporary stub to resolve dependencies in ported LoadBalancingPolicy. */ public class LocationConstraint { public boolean isPermitted(Location l) { return true; } // TODO }
apache/incubator-heron
1,122
heron/api/src/java/org/apache/heron/api/metric/AssignableMetric.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.heron.api.metric; public class AssignableMetric<T> implements IMetric<T> { private T value; public AssignableMetric(T value) { this.value = value; } public void setValue(T value) { this.value = value; } @Override public T getValueAndReset() { return value; } }
apache/incubator-hugegraph-computer
1,091
computer/computer-core/src/main/java/org/apache/hugegraph/computer/core/input/EdgeFetcher.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. The ASF * licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ package org.apache.hugegraph.computer.core.input; import org.apache.hugegraph.structure.graph.Edge; /** * Streamed read the data of each input split, and return one HugeEdge object * at each iteration */ public interface EdgeFetcher extends ElementFetcher<Edge> { void close(); }
apache/incubator-kie-drools
1,084
drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/InternalPatternDef.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.ruleunits.dsl.patterns; import org.drools.model.view.ViewItem; public interface InternalPatternDef extends PatternDef { ViewItem toExecModelItem(); default InternalPatternDef subPatternFrom(InternalPatternDef from) { return this; } }
apache/incubator-kie-drools
1,105
kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterInvokeBKMEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.dmn.api.core.event; import org.kie.dmn.api.core.ast.BusinessKnowledgeModelNode; public interface AfterInvokeBKMEvent extends DMNEvent { BusinessKnowledgeModelNode getBusinessKnowledgeModel(); default Object getInvocationResult() { return null; } }
apache/incubator-kie-drools
1,112
kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Dimension.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.dmn.model.api.dmndi; import org.kie.dmn.model.api.DMNModelInstrumentedBase; public interface Dimension extends DMNModelInstrumentedBase { public double getWidth(); public void setWidth(double value); public double getHeight(); public void setHeight(double value); }
apache/incubator-kie-drools
1,118
drools-templates/src/main/java/org/drools/template/parser/LongCell.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.template.parser; /** * A cell in a decision table containing a long value */ public class LongCell extends AbstractCell<Long> { public LongCell(Row row, Column column) { super(row, column); } public void setValue(String v) { value = Long.valueOf(v); } }
apache/incubator-kie-kogito-runtimes
1,095
api/kogito-api/src/main/java/org/kie/kogito/internal/process/event/KogitoObjectListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.kogito.internal.process.event; public interface KogitoObjectListener { void beforeValueChanged(Object container, String property, Object oldValue, Object newValue); void afterValueChanged(Object container, String property, Object oldValue, Object newValue); }
apache/incubator-retired-htrace
1,119
htrace-core4/src/main/java/org/apache/htrace/core/NeverSampler.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.htrace.core; /** * A Sampler that never returns true. */ public final class NeverSampler extends Sampler { public static final NeverSampler INSTANCE = new NeverSampler(null); public NeverSampler(HTraceConfiguration conf) { } @Override public boolean next() { return false; } }
apache/incubator-retired-wave
1,127
wave/src/main/java/com/google/wave/api/NonJsonSerializable.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package com.google.wave.api; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * Marks a field to be non-serializable. When serializing the object to JSON, * this field should not be included. */ @Retention(RetentionPolicy.RUNTIME) public @interface NonJsonSerializable {}
apache/incubator-tuweni
1,143
bytes/src/main/java/org/apache/tuweni/bytes/package-info.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * * Classes and utilities for working with byte arrays. * * <p> * These classes are included in the standard Tuweni distribution, or separately when using the gradle dependency * 'org.apache.tuweni:tuweni-bytes' (tuweni-bytes.jar). */ @ParametersAreNonnullByDefault package org.apache.tuweni.bytes; import javax.annotation.ParametersAreNonnullByDefault;
apache/incubator-wayang
1,110
wayang-commons/wayang-core/src/main/java/org/apache/wayang/core/util/Actions.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wayang.core.util; /** * Utilities to perform actions. */ public class Actions { /** * Executes an {@link Action}, catching any error. * * @param action to be executed */ public static void doSafe(Action action) { action.executeSafe(); } }
apache/inlong
1,093
inlong-manager/manager-workflow/src/main/java/org/apache/inlong/manager/workflow/definition/EndEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.manager.workflow.definition; /** * End event */ public class EndEvent extends Element { public EndEvent() { this.setName("EndEvent"); this.setDisplayName("EndEvent"); } @Override public void validate() { // do notion } }
apache/inlong
1,104
inlong-sort/sort-common/src/test/java/org/apache/inlong/sort/protocol/node/format/AvroFormatTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.sort.protocol.node.format; import org.apache.inlong.sort.SerializeBaseTest; /** * Test for {@link AvroFormat} */ public class AvroFormatTest extends SerializeBaseTest<AvroFormat> { @Override public AvroFormat getTestObject() { return new AvroFormat(); } }
apache/inlong
1,108
inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/decode/XmlNode.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.sdk.transform.decode; import lombok.Data; /** * XmlNode */ @Data public class XmlNode { private String name; private Object value; public XmlNode() { } public XmlNode(String name, Object value) { this.name = name; this.value = value; } }
apache/iotdb
1,090
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/utils/listener/WALFlushListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.db.storageengine.dataregion.wal.utils.listener; /** This class helps judge whether wal is flushed to the storage device. */ public class WALFlushListener extends AbstractResultListener { public WALFlushListener(boolean wait) { super(wait); } }
apache/iotdb
1,111
iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/exception/UDFManagementException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iotdb.udf.api.exception; public class UDFManagementException extends UDFException { public UDFManagementException(String message, Throwable cause) { super(message); this.initCause(cause); } public UDFManagementException(String message) { super(message); } }
apache/jena
1,137
jena-core/src/test/java/org/apache/jena/enhanced/test/TestNode.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.enhanced.test; public interface TestNode { // Convenience routines for converting between different // views using the subinterfaces, // These are implemented in the base implementation class // TestCommonImpl. TestSubject asSubject(); TestObject asObject(); TestProperty asProperty(); }
apache/jmeter
1,133
src/protocol/junit-sample/src/main/java/test/TearDownTestFail.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package test; import junit.framework.TestCase; /** * Test to demonstrate how tearDown failures are handled */ public class TearDownTestFail extends TestCase { @Override public void tearDown(){ fail("tearDown()"); } public void testTearDownFail(){ // Dummy to ensure there is a test to run } }
apache/jmeter
1,134
src/core/src/main/java/org/apache/jmeter/timers/ModifiableTimer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jmeter.timers; /** * This interface identifies Modifiable timers to which a factor can be applied * @since 3.1 */ public interface ModifiableTimer extends Timer { /** * @return true if factor can be applied to it */ @Override default boolean isModifiable() { return true; } }
apache/juneau
1,127
juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/config/package-info.java
/*************************************************************************************************************************** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * ***************************************************************************************************************************/ /** * Predefined REST configuration interfaces */ package org.apache.juneau.rest.config;