From 16fe4d469970d5a50a834daf45d682b34a4a91aa Mon Sep 17 00:00:00 2001 From: xuechangfeng <963779172@qq.com> Date: Thu, 8 Jul 2021 17:27:32 +0800 Subject: [PATCH] =?UTF-8?q?7.8findBugs=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ohos/speeddial/sample/MainAbility.java | 14 ++++++++++++++ .../ohos/speeddial/sample/MyApplication.java | 14 ++++++++++++++ .../ohos/speeddial/sample/TestMainAbility.java | 14 ++++++++++++++ .../speeddial/sample/UseCasesAbilityAblity.java | 14 ++++++++++++++ .../speeddial/sample/adapter/ListItemProvider.java | 3 +-- .../sample/adapter/ListItemProviderCircle.java | 3 +-- .../ohos/speeddial/sample/beans/ListBean.java | 5 ++--- .../speeddial/sample/beans/ListBeanCircle.java | 11 +++++------ .../sample/custom/CustomAttachDialogFive.java | 3 +-- .../sample/custom/CustomAttachDialogFiveItem.java | 3 +-- .../custom/CustomAttachDialogFiveItemClose.java | 3 +-- .../custom/CustomAttachDialogFiveItemOpen.java | 3 +-- .../sample/custom/CustomAttachPopup2.java | 14 ++++++++++++++ .../speeddial/sample/custom/FastClickUtil.java | 3 +-- .../speeddial/sample/slice/MainAbilitySlice.java | 3 +-- .../sample/slice/TestMainAbilitySlice.java | 3 +-- .../sample/slice/UseCasesAbilitySlice.java | 3 +-- 17 files changed, 87 insertions(+), 29 deletions(-) diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/MainAbility.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/MainAbility.java index c020d4c..3a2f1d1 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/MainAbility.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/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 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.leinardi.ohos.speeddial.sample; import com.leinardi.ohos.speeddial.sample.slice.MainAbilitySlice; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/MyApplication.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/MyApplication.java index 03a7d29..85e32fe 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/MyApplication.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/MyApplication.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 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.leinardi.ohos.speeddial.sample; import ohos.aafwk.ability.AbilityPackage; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/TestMainAbility.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/TestMainAbility.java index 2ace063..158ddf7 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/TestMainAbility.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/TestMainAbility.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 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.leinardi.ohos.speeddial.sample; import com.leinardi.ohos.speeddial.sample.slice.TestMainAbilitySlice; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/UseCasesAbilityAblity.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/UseCasesAbilityAblity.java index 79756cf..2829813 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/UseCasesAbilityAblity.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/UseCasesAbilityAblity.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 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.leinardi.ohos.speeddial.sample; import com.leinardi.ohos.speeddial.sample.slice.UseCasesAbilitySlice; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/adapter/ListItemProvider.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/adapter/ListItemProvider.java index 648df61..60d223d 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/adapter/ListItemProvider.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/adapter/ListItemProvider.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.leinardi.ohos.speeddial.sample.adapter; import com.leinardi.ohos.speeddial.sample.ResourceTable; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/adapter/ListItemProviderCircle.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/adapter/ListItemProviderCircle.java index 6333337..539defe 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/adapter/ListItemProviderCircle.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/adapter/ListItemProviderCircle.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.leinardi.ohos.speeddial.sample.adapter; import com.leinardi.ohos.speeddial.sample.ResourceTable; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/beans/ListBean.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/beans/ListBean.java index 9629fed..da77000 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/beans/ListBean.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/beans/ListBean.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.leinardi.ohos.speeddial.sample.beans; /** @@ -26,7 +25,7 @@ public class ListBean { /** * 构造方法 * - * @param text + * @param text text */ public ListBean(String text) { this.text = text; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/beans/ListBeanCircle.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/beans/ListBeanCircle.java index 3be8159..e003393 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/beans/ListBeanCircle.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/beans/ListBeanCircle.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.leinardi.ohos.speeddial.sample.beans; public class ListBeanCircle { @@ -23,9 +22,9 @@ public class ListBeanCircle { /** * 构造方法 * - * @param id - * @param mImage - * @param text + * @param id id + * @param mImage mImage + * @param text text */ public ListBeanCircle(int id, int mImage, String text) { this.id = id; @@ -53,7 +52,7 @@ public class ListBeanCircle { /** * 获取 * - * @param mImage + * @param mImage mImage */ public void setmImage(int mImage) { this.mImage = mImage; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFive.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFive.java index c5d5ac9..2a920ed 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFive.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFive.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.leinardi.ohos.speeddial.sample.custom; import com.leinardi.ohos.speeddial.sample.ResourceTable; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFiveItem.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFiveItem.java index 70e1170..ea69579 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFiveItem.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFiveItem.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.leinardi.ohos.speeddial.sample.custom; import com.leinardi.ohos.speeddial.sample.ResourceTable; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFiveItemClose.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFiveItemClose.java index 19d7e05..fed58db 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFiveItemClose.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFiveItemClose.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.leinardi.ohos.speeddial.sample.custom; import com.leinardi.ohos.speeddial.sample.ResourceTable; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFiveItemOpen.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFiveItemOpen.java index 8a728b7..f454a49 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFiveItemOpen.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachDialogFiveItemOpen.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.leinardi.ohos.speeddial.sample.custom; import com.leinardi.ohos.speeddial.sample.ResourceTable; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachPopup2.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachPopup2.java index 3b7a77c..79d27d1 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachPopup2.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/CustomAttachPopup2.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 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.leinardi.ohos.speeddial.sample.custom; import com.leinardi.ohos.speeddial.sample.ResourceTable; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/FastClickUtil.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/FastClickUtil.java index bcf8cc4..87cdbbf 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/FastClickUtil.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/custom/FastClickUtil.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.leinardi.ohos.speeddial.sample.custom; /** diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/slice/MainAbilitySlice.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/slice/MainAbilitySlice.java index 31db8e3..dd3719f 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/slice/MainAbilitySlice.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.leinardi.ohos.speeddial.sample.slice; import com.leinardi.ohos.speeddial.sample.ResourceTable; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/slice/TestMainAbilitySlice.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/slice/TestMainAbilitySlice.java index ca56a59..f532c2e 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/slice/TestMainAbilitySlice.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/slice/TestMainAbilitySlice.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.leinardi.ohos.speeddial.sample.slice; import com.leinardi.ohos.speeddial.sample.ResourceTable; diff --git a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/slice/UseCasesAbilitySlice.java b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/slice/UseCasesAbilitySlice.java index b5a0a0e..992c20a 100644 --- a/entry/src/main/java/com/leinardi/ohos/speeddial/sample/slice/UseCasesAbilitySlice.java +++ b/entry/src/main/java/com/leinardi/ohos/speeddial/sample/slice/UseCasesAbilitySlice.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.leinardi.ohos.speeddial.sample.slice; import com.leinardi.ohos.speeddial.sample.ResourceTable; -- Gitee