diff --git a/entry/src/main/java/com/yuyh/bankcardformat/MainAbility.java b/entry/src/main/java/com/yuyh/bankcardformat/MainAbility.java index ef2c6a08152e5c4b39651ed6fc22d9d7acb606eb..33176d298369890b12176df36ed1241207aa24d8 100644 --- a/entry/src/main/java/com/yuyh/bankcardformat/MainAbility.java +++ b/entry/src/main/java/com/yuyh/bankcardformat/MainAbility.java @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * 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 an 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.yuyh.bankcardformat; @@ -5,6 +19,12 @@ import com.yuyh.bankcardformat.slice.MainAbilitySlice; import ohos.aafwk.ability.Ability; import ohos.aafwk.content.Intent; +/** + * MainAbility + * + * @author ljx + * @since 2021-05-08 + */ public class MainAbility extends Ability { @Override diff --git a/entry/src/main/java/com/yuyh/bankcardformat/MyApplication.java b/entry/src/main/java/com/yuyh/bankcardformat/MyApplication.java index a16dd397d28dbaeb2caf5b82b743437708bf15b6..a6a02e81c8ed5e5654318bebeca32a59ac12dd12 100644 --- a/entry/src/main/java/com/yuyh/bankcardformat/MyApplication.java +++ b/entry/src/main/java/com/yuyh/bankcardformat/MyApplication.java @@ -1,8 +1,28 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * 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 an 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.yuyh.bankcardformat; import ohos.aafwk.ability.AbilityPackage; +/** + * MyApplication + * + * @author ljx + * @since 2021-05-08 + */ public class MyApplication extends AbilityPackage { @Override public void onInitialize() { diff --git a/entry/src/main/java/com/yuyh/bankcardformat/slice/MainAbilitySlice.java b/entry/src/main/java/com/yuyh/bankcardformat/slice/MainAbilitySlice.java index 8ddc24cd1bd79966c07c77e86889d0e73090d893..cfbac570fe80eb87fb20d1d3efef2f4c4856f35e 100644 --- a/entry/src/main/java/com/yuyh/bankcardformat/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/yuyh/bankcardformat/slice/MainAbilitySlice.java @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * 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 an 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.yuyh.bankcardformat.slice; @@ -8,6 +22,12 @@ import ohos.aafwk.ability.AbilitySlice; import ohos.aafwk.content.Intent; import ohos.agp.components.Text; +/** + * MainAbilitySlice + * + * @author ljx + * @since 2021-05-08 + */ public class MainAbilitySlice extends AbilitySlice { private BandCardEditText editText; diff --git a/entry/src/ohosTest/java/com/yuyh/bankcardformat/ExampleOhosTest.java b/entry/src/ohosTest/java/com/yuyh/bankcardformat/ExampleOhosTest.java index 21c0b90bbcd3d2b0b802956c7c970845080cd64d..8ce576d7622ceb7808cebddf5691cb8b030e76c6 100644 --- a/entry/src/ohosTest/java/com/yuyh/bankcardformat/ExampleOhosTest.java +++ b/entry/src/ohosTest/java/com/yuyh/bankcardformat/ExampleOhosTest.java @@ -18,7 +18,6 @@ package com.yuyh.bankcardformat; import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry; import org.junit.Test; -import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import static org.junit.Assert.assertEquals;