From efcc8840991873f910fc3eb38c97c0a9c4145d9c Mon Sep 17 00:00:00 2001 From: wjt983049539 Date: Wed, 7 Jul 2021 15:29:50 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=BD=9C=E8=80=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/config.json | 4 ++-- .../router/demo/{ArgsActivity.java => ArgsAbility.java} | 3 +-- .../java/com/lzh/nonview/router/demo/BaseAbility.java | 1 - ...entPrinterActivity.java => IntentPrinterAbility.java} | 3 +-- .../java/com/lzh/nonview/router/demo/LoginAbility.java | 1 - .../java/com/lzh/nonview/router/demo/MainAbility.java | 1 - .../java/com/lzh/nonview/router/demo/MyApplication.java | 1 - .../java/com/lzh/nonview/router/demo/ResultAbility.java | 1 - .../java/com/lzh/nonview/router/demo/UserAbility.java | 1 - .../lzh/nonview/router/demo/action/ExecutorAction.java | 1 - .../lzh/nonview/router/demo/action/SayHelloAction.java | 1 - .../lzh/nonview/router/demo/executor/TestExecutor.java | 1 - .../router/demo/interceptors/DefaultInterceptor.java | 1 - .../router/demo/interceptors/LoginInterceptor.java | 1 - .../com/lzh/nonview/router/demo/manager/DataManager.java | 1 - .../main/java/com/lzh/nonview/router/demo/pojo/User.java | 9 +++++---- .../lzh/nonview/router/demo/slice/ArgsAbilitySlice.java | 1 - .../router/demo/slice/IntentPrinterAbilitySlice.java | 1 - .../lzh/nonview/router/demo/slice/LoginAbilitySlice.java | 1 - .../lzh/nonview/router/demo/slice/MainAbilitySlice.java | 1 - .../nonview/router/demo/slice/ResultAbilitySlice.java | 1 - .../lzh/nonview/router/demo/slice/UserAbilitySlice.java | 1 - .../java/com/lzh/nonview/router/demo/utils/LogUtils.java | 1 - .../java/com/lzh/nonview/router/anno/ActionLauncher.java | 1 - .../main/java/com/lzh/nonview/router/extras/MyUri.java | 1 - .../nonview/router/launcher/DefaultActivityLauncher.java | 8 ++++---- .../lzh/nonview/router/tools/OpenFractionException.java | 1 - .../com/lzh/nonview/router/tools/ParcelInjector.java | 1 - .../main/java/com/lzh/nonview/router/tools/Utils.java | 1 - 29 files changed, 13 insertions(+), 38 deletions(-) rename entry/src/main/java/com/lzh/nonview/router/demo/{ArgsActivity.java => ArgsAbility.java} (86%) rename entry/src/main/java/com/lzh/nonview/router/demo/{IntentPrinterActivity.java => IntentPrinterAbility.java} (86%) diff --git a/entry/src/main/config.json b/entry/src/main/config.json index 24c44a2..3b84dee 100644 --- a/entry/src/main/config.json +++ b/entry/src/main/config.json @@ -50,7 +50,7 @@ }, { "orientation": "unspecified", - "name": "com.lzh.nonview.router.demo.ArgsActivity", + "name": "com.lzh.nonview.router.demo.ArgsAbility", "icon": "$media:icon", "description": "$string:mainability_description", "label": "$string:Router_master", @@ -59,7 +59,7 @@ }, { "orientation": "unspecified", - "name": "com.lzh.nonview.router.demo.IntentPrinterActivity", + "name": "com.lzh.nonview.router.demo.IntentPrinterAbility", "icon": "$media:icon", "description": "IntentPrinterActivity", "label": "$string:Router_master", diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/ArgsActivity.java b/entry/src/main/java/com/lzh/nonview/router/demo/ArgsAbility.java similarity index 86% rename from entry/src/main/java/com/lzh/nonview/router/demo/ArgsActivity.java rename to entry/src/main/java/com/lzh/nonview/router/demo/ArgsAbility.java index 3786d55..e21b96d 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/ArgsActivity.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/ArgsAbility.java @@ -8,11 +8,10 @@ import ohos.aafwk.content.Intent; /** * 参数能力 * - * @author: wjt * @since 2021-03-26 */ @RouterRule("parceler-args") -public class ArgsActivity extends BaseAbility { +public class ArgsAbility extends BaseAbility { @Override protected void onStart(Intent intent) { super.onStart(intent); diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/BaseAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/BaseAbility.java index 9aa2661..338fe46 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/BaseAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/BaseAbility.java @@ -8,7 +8,6 @@ import ohos.aafwk.content.Intent; /** * 基类 * - * @author:wjt * @since 2021-03-20 */ public class BaseAbility extends Ability { diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterActivity.java b/entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterAbility.java similarity index 86% rename from entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterActivity.java rename to entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterAbility.java index 1c62959..fa20071 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterActivity.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterAbility.java @@ -8,11 +8,10 @@ import ohos.aafwk.content.Intent; /** * 打印显示屏幕的能力 * - * @author:wjt * @since 2021-03-20 */ @RouterRule("intent/printer") -public class IntentPrinterActivity extends BaseAbility { +public class IntentPrinterAbility extends BaseAbility { @Override protected void onStart(Intent intent) { super.onStart(intent); diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/LoginAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/LoginAbility.java index 41cbc0b..839e4fa 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/LoginAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/LoginAbility.java @@ -7,7 +7,6 @@ import ohos.aafwk.content.Intent; /** * 登录页面的能力 * - * @author:wjt * @since 2021-03-20 */ public class LoginAbility extends BaseAbility { diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/MainAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/MainAbility.java index 632c47b..0f8fb99 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/MainAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/MainAbility.java @@ -7,7 +7,6 @@ import ohos.aafwk.content.Intent; /** * 主页面的能力 * - * @author:wjt * @since 2021-03-20 */ public class MainAbility extends BaseAbility { diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/MyApplication.java b/entry/src/main/java/com/lzh/nonview/router/demo/MyApplication.java index 8b812ed..d7d58b9 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/MyApplication.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/MyApplication.java @@ -11,7 +11,6 @@ import ohos.aafwk.ability.AbilityPackage; /** * APPaction * - * @author:wjt * @since 2021-03-20 */ @RouteConfig(baseUrl = "haoge://page/", pack = "com.haoge.studio") diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/ResultAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/ResultAbility.java index 4c9ca10..5580c8b 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/ResultAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/ResultAbility.java @@ -8,7 +8,6 @@ import ohos.aafwk.content.Intent; /** * 动作 * - * @author:wjt * @since 2021-03-20 */ @RouterRule("result") diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/UserAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/UserAbility.java index 2a9e3ec..794fbfe 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/UserAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/UserAbility.java @@ -7,7 +7,6 @@ import com.lzh.nonview.router.anno.RouterRule; /** * 动作 * - * @author:wjt * @since 2021-03-20 */ diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/action/ExecutorAction.java b/entry/src/main/java/com/lzh/nonview/router/demo/action/ExecutorAction.java index fee186f..cc45477 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/action/ExecutorAction.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/action/ExecutorAction.java @@ -17,7 +17,6 @@ import ohos.app.Context; /** * 动作 * - * @author:wjt * @since 2021-03-20 */ @RouteExecutor(TestExecutor.class) diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/action/SayHelloAction.java b/entry/src/main/java/com/lzh/nonview/router/demo/action/SayHelloAction.java index 291a339..597f174 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/action/SayHelloAction.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/action/SayHelloAction.java @@ -11,7 +11,6 @@ import ohos.app.Context; /** * 接收路由束数据的回调方法。 * - * @author:wjt * @since 2021-03-20 */ @RouterRule("say/hello") diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/executor/TestExecutor.java b/entry/src/main/java/com/lzh/nonview/router/demo/executor/TestExecutor.java index 4e90892..cdfcd96 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/executor/TestExecutor.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/executor/TestExecutor.java @@ -8,7 +8,6 @@ import java.util.concurrent.ThreadFactory; /** * 动作 * - * @author:wjt * @since 2021-03-20 */ public class TestExecutor implements Executor { diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/interceptors/DefaultInterceptor.java b/entry/src/main/java/com/lzh/nonview/router/demo/interceptors/DefaultInterceptor.java index 8e09444..8b48a5b 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/interceptors/DefaultInterceptor.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/interceptors/DefaultInterceptor.java @@ -13,7 +13,6 @@ import ohos.utils.net.Uri; /** * 默认拦截器。所有路由(除掉直接以浏览器方式打开的路由)均会触发此拦截器可以用作登录开关控制:为登录拦截添加动态登录控制 * - * @author:wjt * @since 2021-03-20 **/ public class DefaultInterceptor implements RouteInterceptor { diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/interceptors/LoginInterceptor.java b/entry/src/main/java/com/lzh/nonview/router/demo/interceptors/LoginInterceptor.java index 5dd7cb6..572454e 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/interceptors/LoginInterceptor.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/interceptors/LoginInterceptor.java @@ -13,7 +13,6 @@ import ohos.utils.net.Uri; /** * 默认拦截器。所有路由(除掉直接以浏览器方式打开的路由)均会触发此拦截器以用作登录开关控制:为登录拦截添加动态登录控制 * - * @author: wjt * @since 2021-03-20 **/ public class LoginInterceptor implements RouteInterceptor { diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/manager/DataManager.java b/entry/src/main/java/com/lzh/nonview/router/demo/manager/DataManager.java index 5de4d36..21101d0 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/manager/DataManager.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/manager/DataManager.java @@ -3,7 +3,6 @@ package com.lzh.nonview.router.demo.manager; /** * 一个本地的内存数据管理容器。提供登录状态进行使用 * - * @author:wjt * @since 2021-03-20 */ public class DataManager { diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/pojo/User.java b/entry/src/main/java/com/lzh/nonview/router/demo/pojo/User.java index 8c02b02..8c904ec 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/pojo/User.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/pojo/User.java @@ -6,13 +6,14 @@ import com.lzh.nonview.router.route.ICreatorInjector; import ohos.aafwk.content.IntentParams; /** -* 测试bean -* @author: wjt -* @since 2021-03-20 -**/ + * 测试bean + * + * @since 2021-03-20 + **/ @RouterRule("creator/user") public class User implements ICreatorInjector { private String name; + /** * 空构造 */ diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/ArgsAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/ArgsAbilitySlice.java index 47b4f31..d9e01f9 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/ArgsAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/ArgsAbilitySlice.java @@ -10,7 +10,6 @@ import ohos.agp.components.Text; /** * 由于依赖的是外部库,所以直接用自己的方法实现 * - * @author:wjt * @since 2021-03-20 */ public class ArgsAbilitySlice extends AbilitySlice { diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/IntentPrinterAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/IntentPrinterAbilitySlice.java index ccce93e..71886de 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/IntentPrinterAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/IntentPrinterAbilitySlice.java @@ -12,7 +12,6 @@ import java.util.Set; /** * 打印的能力展现类 * - * @author: wjt * @since 2021-03-20 **/ public class IntentPrinterAbilitySlice extends AbilitySlice { diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/LoginAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/LoginAbilitySlice.java index ed8b3b4..fc28f61 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/LoginAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/LoginAbilitySlice.java @@ -15,7 +15,6 @@ import ohos.utils.net.Uri; /** * 登录页面 * - * @author:wjt * @since 2021-03-20 */ public class LoginAbilitySlice extends AbilitySlice { diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/MainAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/MainAbilitySlice.java index 053a75e..7202732 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/MainAbilitySlice.java @@ -29,7 +29,6 @@ import java.util.concurrent.ThreadFactory; /** * 主页 * - * @author:wjt * @since 2021-03-20 */ public class MainAbilitySlice extends AbilitySlice implements Component.ClickedListener { diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/ResultAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/ResultAbilitySlice.java index cd0d0e4..952c4cb 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/ResultAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/ResultAbilitySlice.java @@ -13,7 +13,6 @@ import ohos.utils.net.Uri; /** * ResultAbilitySlice * - * @author:wjt * @since 2021-03-20 */ public class ResultAbilitySlice extends AbilitySlice { diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/UserAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/UserAbilitySlice.java index 6aeb895..6132283 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/UserAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/UserAbilitySlice.java @@ -11,7 +11,6 @@ import ohos.agp.components.Text; /** * 显示bean信息 * -* @author:wjt * @since 2021-03-20 */ public class UserAbilitySlice extends AbilitySlice { diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/utils/LogUtils.java b/entry/src/main/java/com/lzh/nonview/router/demo/utils/LogUtils.java index 5abb8af..19f4b27 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/utils/LogUtils.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/utils/LogUtils.java @@ -23,7 +23,6 @@ import ohos.hiviewdfx.HiLogLabel; /** * description 日志类 * - * @author wjt * @since 2021-03-20 */ public class LogUtils { diff --git a/router_anno/src/main/java/com/lzh/nonview/router/anno/ActionLauncher.java b/router_anno/src/main/java/com/lzh/nonview/router/anno/ActionLauncher.java index 5dcdae3..c3594d6 100644 --- a/router_anno/src/main/java/com/lzh/nonview/router/anno/ActionLauncher.java +++ b/router_anno/src/main/java/com/lzh/nonview/router/anno/ActionLauncher.java @@ -7,7 +7,6 @@ import java.lang.annotation.Target; /** * ActionLauncher * - * @author:wjt * @since 2021-04-06 */ @Retention(RetentionPolicy.CLASS) diff --git a/router_api/src/main/java/com/lzh/nonview/router/extras/MyUri.java b/router_api/src/main/java/com/lzh/nonview/router/extras/MyUri.java index 3e65355..e2da7c4 100644 --- a/router_api/src/main/java/com/lzh/nonview/router/extras/MyUri.java +++ b/router_api/src/main/java/com/lzh/nonview/router/extras/MyUri.java @@ -3,7 +3,6 @@ package com.lzh.nonview.router.extras; /** * @program: Router_master * @description - * @author: wjt * @create: 2021-03-17 19:37 **/ public class MyUri { diff --git a/router_api/src/main/java/com/lzh/nonview/router/launcher/DefaultActivityLauncher.java b/router_api/src/main/java/com/lzh/nonview/router/launcher/DefaultActivityLauncher.java index 3b0ec0e..afcdc56 100644 --- a/router_api/src/main/java/com/lzh/nonview/router/launcher/DefaultActivityLauncher.java +++ b/router_api/src/main/java/com/lzh/nonview/router/launcher/DefaultActivityLauncher.java @@ -103,18 +103,18 @@ public class DefaultActivityLauncher extends ActivityLauncher { /** * 启动动画 * - * @param activity + * @param ability * @param extras */ - protected void overridePendingTransition(Ability activity, RouteBundleExtras extras) { - if (activity == null || extras == null) { + protected void overridePendingTransition(Ability ability, RouteBundleExtras extras) { + if (ability == null || extras == null) { return; } int inAnimation = extras.getInAnimation(); int outAnimation = extras.getOutAnimation(); if (inAnimation >= 0 && outAnimation >= 0) { - activity.setTransitionAnimation(inAnimation, outAnimation); + ability.setTransitionAnimation(inAnimation, outAnimation); } } diff --git a/router_api/src/main/java/com/lzh/nonview/router/tools/OpenFractionException.java b/router_api/src/main/java/com/lzh/nonview/router/tools/OpenFractionException.java index 8ef056b..e0ac4bf 100644 --- a/router_api/src/main/java/com/lzh/nonview/router/tools/OpenFractionException.java +++ b/router_api/src/main/java/com/lzh/nonview/router/tools/OpenFractionException.java @@ -3,7 +3,6 @@ package com.lzh.nonview.router.tools; /** * @program: Router_master * @description - * @author: wjt * @create: 2021-03-15 14:21 **/ public class OpenFractionException extends RuntimeException{ diff --git a/router_api/src/main/java/com/lzh/nonview/router/tools/ParcelInjector.java b/router_api/src/main/java/com/lzh/nonview/router/tools/ParcelInjector.java index 220c776..3476805 100644 --- a/router_api/src/main/java/com/lzh/nonview/router/tools/ParcelInjector.java +++ b/router_api/src/main/java/com/lzh/nonview/router/tools/ParcelInjector.java @@ -5,7 +5,6 @@ import ohos.aafwk.content.IntentParams; /** * @program: Router_master * @description - * @author: wjt * @create: 2021-03-23 11:10 **/ public interface ParcelInjector { diff --git a/router_api/src/main/java/com/lzh/nonview/router/tools/Utils.java b/router_api/src/main/java/com/lzh/nonview/router/tools/Utils.java index 21afb27..89d242b 100644 --- a/router_api/src/main/java/com/lzh/nonview/router/tools/Utils.java +++ b/router_api/src/main/java/com/lzh/nonview/router/tools/Utils.java @@ -34,7 +34,6 @@ import java.util.Set; /** * 工具类 * - * @author wjt * @ noinspection checkstyle:WriteTag */ @SuppressWarnings("unchecked") -- Gitee From 69bd9d2b2ca480faa9d1268b1fb6140d4c558934 Mon Sep 17 00:00:00 2001 From: wjt983049539 Date: Thu, 8 Jul 2021 11:14:37 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=89=88=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lzh/nonview/router/demo/ArgsAbility.java | 15 +++++++++++++++ .../com/lzh/nonview/router/demo/BaseAbility.java | 15 +++++++++++++++ .../router/demo/IntentPrinterAbility.java | 15 +++++++++++++++ .../lzh/nonview/router/demo/LoginAbility.java | 15 +++++++++++++++ .../com/lzh/nonview/router/demo/MainAbility.java | 15 +++++++++++++++ .../lzh/nonview/router/demo/MyApplication.java | 15 +++++++++++++++ .../lzh/nonview/router/demo/ResultAbility.java | 15 +++++++++++++++ .../com/lzh/nonview/router/demo/UserAbility.java | 15 +++++++++++++++ .../router/demo/slice/ArgsAbilitySlice.java | 16 +++++++++++++++- .../demo/slice/IntentPrinterAbilitySlice.java | 16 +++++++++++++++- .../router/demo/slice/LoginAbilitySlice.java | 15 +++++++++++++++ .../router/demo/slice/MainAbilitySlice.java | 15 +++++++++++++++ .../router/demo/slice/ResultAbilitySlice.java | 15 +++++++++++++++ .../router/demo/slice/UserAbilitySlice.java | 15 +++++++++++++++ 14 files changed, 210 insertions(+), 2 deletions(-) diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/ArgsAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/ArgsAbility.java index e21b96d..8da9eef 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/ArgsAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/ArgsAbility.java @@ -1,3 +1,18 @@ +/* + * 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.lzh.nonview.router.demo; import com.lzh.nonview.router.demo.slice.ArgsAbilitySlice; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/BaseAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/BaseAbility.java index 338fe46..31a7838 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/BaseAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/BaseAbility.java @@ -1,3 +1,18 @@ +/* + * 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.lzh.nonview.router.demo; import com.lzh.nonview.router.RouterConfiguration; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterAbility.java index fa20071..277c01d 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterAbility.java @@ -1,3 +1,18 @@ +/* + * 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.lzh.nonview.router.demo; import com.lzh.nonview.router.demo.slice.IntentPrinterAbilitySlice; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/LoginAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/LoginAbility.java index 839e4fa..f5429d2 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/LoginAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/LoginAbility.java @@ -1,3 +1,18 @@ +/* + * 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.lzh.nonview.router.demo; import com.lzh.nonview.router.demo.slice.LoginAbilitySlice; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/MainAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/MainAbility.java index 0f8fb99..0ae47ae 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/MainAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/MainAbility.java @@ -1,3 +1,18 @@ +/* + * 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.lzh.nonview.router.demo; import com.lzh.nonview.router.demo.slice.MainAbilitySlice; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/MyApplication.java b/entry/src/main/java/com/lzh/nonview/router/demo/MyApplication.java index d7d58b9..8b2f9bc 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/MyApplication.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/MyApplication.java @@ -1,3 +1,18 @@ +/* + * 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.lzh.nonview.router.demo; import com.lzh.nonview.router.demo.interceptors.DefaultInterceptor; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/ResultAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/ResultAbility.java index 5580c8b..e2203b4 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/ResultAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/ResultAbility.java @@ -1,3 +1,18 @@ +/* + * 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.lzh.nonview.router.demo; import com.lzh.nonview.router.demo.slice.ResultAbilitySlice; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/UserAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/UserAbility.java index 794fbfe..830ebdf 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/UserAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/UserAbility.java @@ -1,3 +1,18 @@ +/* + * 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.lzh.nonview.router.demo; import com.lzh.nonview.router.demo.interceptors.LoginInterceptor; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/ArgsAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/ArgsAbilitySlice.java index d9e01f9..ca8d122 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/ArgsAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/ArgsAbilitySlice.java @@ -1,5 +1,19 @@ -package com.lzh.nonview.router.demo.slice; +/* + * 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.lzh.nonview.router.demo.slice; import com.lzh.nonview.router.demo.ResourceTable; import ohos.aafwk.ability.AbilitySlice; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/IntentPrinterAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/IntentPrinterAbilitySlice.java index 71886de..8be948a 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/IntentPrinterAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/IntentPrinterAbilitySlice.java @@ -1,5 +1,19 @@ -package com.lzh.nonview.router.demo.slice; +/* + * 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.lzh.nonview.router.demo.slice; import com.lzh.nonview.router.demo.ResourceTable; import ohos.aafwk.ability.AbilitySlice; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/LoginAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/LoginAbilitySlice.java index fc28f61..36863b1 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/LoginAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/LoginAbilitySlice.java @@ -1,3 +1,18 @@ +/* + * 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.lzh.nonview.router.demo.slice; import com.lzh.nonview.router.demo.ResourceTable; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/MainAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/MainAbilitySlice.java index 7202732..d1884a5 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/MainAbilitySlice.java @@ -1,3 +1,18 @@ +/* + * 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.lzh.nonview.router.demo.slice; import com.lzh.nonview.router.demo.ResourceTable; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/ResultAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/ResultAbilitySlice.java index 952c4cb..0a52bb6 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/ResultAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/ResultAbilitySlice.java @@ -1,3 +1,18 @@ +/* + * 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.lzh.nonview.router.demo.slice; import com.lzh.nonview.router.demo.ResourceTable; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/UserAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/UserAbilitySlice.java index 6132283..0577e93 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/UserAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/UserAbilitySlice.java @@ -1,3 +1,18 @@ +/* + * 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.lzh.nonview.router.demo.slice; import com.lzh.nonview.router.demo.ResourceTable; -- Gitee From cb2fdf8581f7a6e72634db2c893eda854d450349 Mon Sep 17 00:00:00 2001 From: wjt983049539 Date: Thu, 8 Jul 2021 11:39:43 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9checkstyle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lzh/nonview/router/demo/ArgsAbility.java | 2 +- .../src/main/java/com/lzh/nonview/router/demo/BaseAbility.java | 2 +- .../java/com/lzh/nonview/router/demo/IntentPrinterAbility.java | 2 +- .../main/java/com/lzh/nonview/router/demo/LoginAbility.java | 2 +- .../src/main/java/com/lzh/nonview/router/demo/MainAbility.java | 2 +- .../main/java/com/lzh/nonview/router/demo/MyApplication.java | 2 +- .../main/java/com/lzh/nonview/router/demo/ResultAbility.java | 2 +- .../src/main/java/com/lzh/nonview/router/demo/UserAbility.java | 2 +- .../com/lzh/nonview/router/demo/slice/ArgsAbilitySlice.java | 2 +- .../nonview/router/demo/slice/IntentPrinterAbilitySlice.java | 2 +- .../com/lzh/nonview/router/demo/slice/LoginAbilitySlice.java | 2 +- .../com/lzh/nonview/router/demo/slice/MainAbilitySlice.java | 3 +-- .../com/lzh/nonview/router/demo/slice/ResultAbilitySlice.java | 2 +- .../com/lzh/nonview/router/demo/slice/UserAbilitySlice.java | 2 +- .../main/java/com/lzh/nonview/router/demo/utils/LogUtils.java | 2 +- .../main/java/com/lzh/nonview/router/route/ActionRoute.java | 3 ++- .../src/main/java/com/lzh/nonview/router/tools/Utils.java | 1 + 17 files changed, 18 insertions(+), 17 deletions(-) diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/ArgsAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/ArgsAbility.java index 8da9eef..b0be4ef 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/ArgsAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/ArgsAbility.java @@ -2,7 +2,7 @@ * 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 * diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/BaseAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/BaseAbility.java index 31a7838..9859020 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/BaseAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/BaseAbility.java @@ -2,7 +2,7 @@ * 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 * diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterAbility.java index 277c01d..c2579a8 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/IntentPrinterAbility.java @@ -2,7 +2,7 @@ * 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 * diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/LoginAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/LoginAbility.java index f5429d2..b08bebf 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/LoginAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/LoginAbility.java @@ -2,7 +2,7 @@ * 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 * diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/MainAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/MainAbility.java index 0ae47ae..97c97a7 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/MainAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/MainAbility.java @@ -2,7 +2,7 @@ * 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 * diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/MyApplication.java b/entry/src/main/java/com/lzh/nonview/router/demo/MyApplication.java index 8b2f9bc..b43d440 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/MyApplication.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/MyApplication.java @@ -2,7 +2,7 @@ * 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 * diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/ResultAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/ResultAbility.java index e2203b4..98960d7 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/ResultAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/ResultAbility.java @@ -2,7 +2,7 @@ * 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 * diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/UserAbility.java b/entry/src/main/java/com/lzh/nonview/router/demo/UserAbility.java index 830ebdf..9fbf062 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/UserAbility.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/UserAbility.java @@ -2,7 +2,7 @@ * 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 * diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/ArgsAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/ArgsAbilitySlice.java index ca8d122..7db79ef 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/ArgsAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/ArgsAbilitySlice.java @@ -2,7 +2,7 @@ * 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 * diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/IntentPrinterAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/IntentPrinterAbilitySlice.java index 8be948a..3aa8525 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/IntentPrinterAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/IntentPrinterAbilitySlice.java @@ -2,7 +2,7 @@ * 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 * diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/LoginAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/LoginAbilitySlice.java index 36863b1..683bfb0 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/LoginAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/LoginAbilitySlice.java @@ -2,7 +2,7 @@ * 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 * diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/MainAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/MainAbilitySlice.java index d1884a5..dc7124d 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/MainAbilitySlice.java @@ -2,7 +2,7 @@ * 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 * @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.lzh.nonview.router.demo.slice; import com.lzh.nonview.router.demo.ResourceTable; diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/ResultAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/ResultAbilitySlice.java index 0a52bb6..9563bb5 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/ResultAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/ResultAbilitySlice.java @@ -2,7 +2,7 @@ * 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 * diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/slice/UserAbilitySlice.java b/entry/src/main/java/com/lzh/nonview/router/demo/slice/UserAbilitySlice.java index 0577e93..80516b1 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/slice/UserAbilitySlice.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/slice/UserAbilitySlice.java @@ -2,7 +2,7 @@ * 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 * diff --git a/entry/src/main/java/com/lzh/nonview/router/demo/utils/LogUtils.java b/entry/src/main/java/com/lzh/nonview/router/demo/utils/LogUtils.java index 19f4b27..5d4d071 100644 --- a/entry/src/main/java/com/lzh/nonview/router/demo/utils/LogUtils.java +++ b/entry/src/main/java/com/lzh/nonview/router/demo/utils/LogUtils.java @@ -2,7 +2,7 @@ * 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 * diff --git a/router_api/src/main/java/com/lzh/nonview/router/route/ActionRoute.java b/router_api/src/main/java/com/lzh/nonview/router/route/ActionRoute.java index 8e5403f..3c4562c 100644 --- a/router_api/src/main/java/com/lzh/nonview/router/route/ActionRoute.java +++ b/router_api/src/main/java/com/lzh/nonview/router/route/ActionRoute.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.lzh.nonview.router.route; import com.lzh.nonview.router.RouterConfiguration; @@ -31,7 +32,7 @@ import java.util.concurrent.Executor; public class ActionRoute extends BaseRoute implements IActionRoute { @Override - protected Launcher obtainLauncher() throws Exception{ + protected Launcher obtainLauncher() throws Exception { ActionRouteRule rule = (ActionRouteRule) routeRule; Class launcher = rule.getLauncher(); if (launcher == null) { diff --git a/router_api/src/main/java/com/lzh/nonview/router/tools/Utils.java b/router_api/src/main/java/com/lzh/nonview/router/tools/Utils.java index 89d242b..4df3b19 100644 --- a/router_api/src/main/java/com/lzh/nonview/router/tools/Utils.java +++ b/router_api/src/main/java/com/lzh/nonview/router/tools/Utils.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.lzh.nonview.router.tools; -- Gitee