From 9b9768e2f80889e216034ec00b32c7be530ff090 Mon Sep 17 00:00:00 2001 From: wjt983049539 Date: Thu, 8 Jul 2021 14:12:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9checkstyle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/github/tbouron/shakedetector/example/LogUtils.java | 4 ++-- .../com/github/tbouron/shakedetector/example/MainAbility.java | 4 ++-- .../github/tbouron/shakedetector/example/MyApplication.java | 4 ++-- .../tbouron/shakedetector/example/slice/MainAbilitySlice.java | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/entry/src/main/java/com/github/tbouron/shakedetector/example/LogUtils.java b/entry/src/main/java/com/github/tbouron/shakedetector/example/LogUtils.java index 4f8c162..f30d8de 100644 --- a/entry/src/main/java/com/github/tbouron/shakedetector/example/LogUtils.java +++ b/entry/src/main/java/com/github/tbouron/shakedetector/example/LogUtils.java @@ -2,8 +2,8 @@ * 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 - + * 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 diff --git a/entry/src/main/java/com/github/tbouron/shakedetector/example/MainAbility.java b/entry/src/main/java/com/github/tbouron/shakedetector/example/MainAbility.java index 5caf96b..c645d89 100644 --- a/entry/src/main/java/com/github/tbouron/shakedetector/example/MainAbility.java +++ b/entry/src/main/java/com/github/tbouron/shakedetector/example/MainAbility.java @@ -2,8 +2,8 @@ * 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 - + * 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 diff --git a/entry/src/main/java/com/github/tbouron/shakedetector/example/MyApplication.java b/entry/src/main/java/com/github/tbouron/shakedetector/example/MyApplication.java index fb8628a..a43681b 100644 --- a/entry/src/main/java/com/github/tbouron/shakedetector/example/MyApplication.java +++ b/entry/src/main/java/com/github/tbouron/shakedetector/example/MyApplication.java @@ -2,8 +2,8 @@ * 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 - + * 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 diff --git a/entry/src/main/java/com/github/tbouron/shakedetector/example/slice/MainAbilitySlice.java b/entry/src/main/java/com/github/tbouron/shakedetector/example/slice/MainAbilitySlice.java index 54bb7c2..c122304 100644 --- a/entry/src/main/java/com/github/tbouron/shakedetector/example/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/github/tbouron/shakedetector/example/slice/MainAbilitySlice.java @@ -2,8 +2,8 @@ * 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 - + * 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 -- Gitee From 66197fd7befb46326d5c20afcfbbb1f11b86a231 Mon Sep 17 00:00:00 2001 From: wjt983049539 Date: Mon, 12 Jul 2021 14:09:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9findbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tbouron/shakedetector/example/slice/MainAbilitySlice.java | 1 - .../com/github/tbouron/shakedetector/library/ShakeDetector.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/entry/src/main/java/com/github/tbouron/shakedetector/example/slice/MainAbilitySlice.java b/entry/src/main/java/com/github/tbouron/shakedetector/example/slice/MainAbilitySlice.java index c122304..0b99cbc 100644 --- a/entry/src/main/java/com/github/tbouron/shakedetector/example/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/github/tbouron/shakedetector/example/slice/MainAbilitySlice.java @@ -210,7 +210,6 @@ public class MainAbilitySlice extends AbilitySlice { Display display = DisplayManager.getInstance().getDefaultDisplay(getAbility()).get(); int width = display.getAttributes().width; AnimatorProperty animator = new AnimatorProperty(); - int widthTo = width / LogUtils.SAN * ERROR; animator.moveFromX(width).moveToX(0).alphaFrom(0).alpha(1).setDuration(WUBAI); return animator; } diff --git a/library/src/main/java/com/github/tbouron/shakedetector/library/ShakeDetector.java b/library/src/main/java/com/github/tbouron/shakedetector/library/ShakeDetector.java index 8d73804..514fef1 100644 --- a/library/src/main/java/com/github/tbouron/shakedetector/library/ShakeDetector.java +++ b/library/src/main/java/com/github/tbouron/shakedetector/library/ShakeDetector.java @@ -243,7 +243,7 @@ public class ShakeDetector implements ICategoryOrientationDataCallback { * * @since 2021-03-20 */ - public class SensorBundle { + public static class SensorBundle { /** * X轴上的加速度 */ -- Gitee