From 585f557eb342b65836e08396726b7a5a1724c689 Mon Sep 17 00:00:00 2001 From: jessyan Date: Thu, 8 Feb 2018 12:16:57 +0800 Subject: [PATCH] Improve license on Demo --- CONTRIBUTING.md | 30 +++++++------- .../app/ActivityLifecycleCallbacksImpl.java | 30 +++++++------- .../mvparms/demo/app/AppLifecyclesImpl.java | 30 +++++++------- .../mvparms/demo/app/EventBusTags.java | 30 +++++++------- .../mvparms/demo/app/GlobalConfiguration.java | 8 ++-- .../demo/app/GlobalHttpHandlerImpl.java | 30 +++++++------- .../demo/app/ResponseErrorListenerImpl.java | 30 +++++++------- .../mvparms/demo/app/service/DemoService.java | 30 +++++++------- .../mvparms/demo/app/utils/RxUtils.java | 30 +++++++------- .../demo/di/component/UserComponent.java | 30 +++++++------- .../mvparms/demo/di/module/UserModule.java | 10 ++--- .../demo/mvp/contract/UserContract.java | 30 +++++++------- .../mvparms/demo/mvp/model/UserModel.java | 30 +++++++------- .../mvparms/demo/mvp/model/api/Api.java | 30 +++++++------- .../demo/mvp/model/api/cache/CommonCache.java | 30 +++++++------- .../mvp/model/api/service/CommonService.java | 30 +++++++------- .../mvp/model/api/service/UserService.java | 30 +++++++------- .../demo/mvp/model/entity/BaseJson.java | 10 ++--- .../mvparms/demo/mvp/model/entity/User.java | 40 +++++++++++-------- .../demo/mvp/presenter/UserPresenter.java | 30 +++++++------- .../demo/mvp/ui/activity/UserActivity.java | 30 +++++++------- .../demo/mvp/ui/adapter/UserAdapter.java | 30 +++++++------- .../demo/mvp/ui/holder/UserItemHolder.java | 30 +++++++------- .../demo/mvp/ui/widget/AutoCardView.java | 30 +++++++------- 24 files changed, 338 insertions(+), 330 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fdec0c9c4..39f00d101 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,19 +12,19 @@ All files are released with the Apache 2.0 license. If you are adding a new file it should have a header like this: ``` -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2018 JessYan + * + * 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. + */ ``` \ No newline at end of file diff --git a/app/src/main/java/me/jessyan/mvparms/demo/app/ActivityLifecycleCallbacksImpl.java b/app/src/main/java/me/jessyan/mvparms/demo/app/ActivityLifecycleCallbacksImpl.java index fde99fa0b..9fcabf950 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/app/ActivityLifecycleCallbacksImpl.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/app/ActivityLifecycleCallbacksImpl.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.app; import android.app.Activity; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/app/AppLifecyclesImpl.java b/app/src/main/java/me/jessyan/mvparms/demo/app/AppLifecyclesImpl.java index dd5842565..40e5efc0f 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/app/AppLifecyclesImpl.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/app/AppLifecyclesImpl.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.app; import android.app.Application; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/app/EventBusTags.java b/app/src/main/java/me/jessyan/mvparms/demo/app/EventBusTags.java index 425f26cf0..c50bb5eec 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/app/EventBusTags.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/app/EventBusTags.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.app; import org.simple.eventbus.EventBus; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/app/GlobalConfiguration.java b/app/src/main/java/me/jessyan/mvparms/demo/app/GlobalConfiguration.java index 8ef588b31..f8688f25a 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/app/GlobalConfiguration.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/app/GlobalConfiguration.java @@ -1,12 +1,12 @@ /* * Copyright 2017 JessYan - *

+ * * 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 - *

+ * + * 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. diff --git a/app/src/main/java/me/jessyan/mvparms/demo/app/GlobalHttpHandlerImpl.java b/app/src/main/java/me/jessyan/mvparms/demo/app/GlobalHttpHandlerImpl.java index c98c0be66..d109b1520 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/app/GlobalHttpHandlerImpl.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/app/GlobalHttpHandlerImpl.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.app; import android.content.Context; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/app/ResponseErrorListenerImpl.java b/app/src/main/java/me/jessyan/mvparms/demo/app/ResponseErrorListenerImpl.java index 38100d999..90b2e0dae 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/app/ResponseErrorListenerImpl.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/app/ResponseErrorListenerImpl.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.app; import android.content.Context; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/app/service/DemoService.java b/app/src/main/java/me/jessyan/mvparms/demo/app/service/DemoService.java index 56a8bd821..bc414abf7 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/app/service/DemoService.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/app/service/DemoService.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.app.service; import com.jess.arms.base.BaseService; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/app/utils/RxUtils.java b/app/src/main/java/me/jessyan/mvparms/demo/app/utils/RxUtils.java index cfa4dc5dc..ecafbc1c0 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/app/utils/RxUtils.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/app/utils/RxUtils.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.app.utils; import com.jess.arms.mvp.IView; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/di/component/UserComponent.java b/app/src/main/java/me/jessyan/mvparms/demo/di/component/UserComponent.java index 1e6982260..449b894da 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/di/component/UserComponent.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/di/component/UserComponent.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.di.component; import com.jess.arms.di.component.AppComponent; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/di/module/UserModule.java b/app/src/main/java/me/jessyan/mvparms/demo/di/module/UserModule.java index 400a53dbd..bd463e3bd 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/di/module/UserModule.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/di/module/UserModule.java @@ -1,12 +1,12 @@ -/** +/* * Copyright 2017 JessYan - *

+ * * 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 - *

+ * + * 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. diff --git a/app/src/main/java/me/jessyan/mvparms/demo/mvp/contract/UserContract.java b/app/src/main/java/me/jessyan/mvparms/demo/mvp/contract/UserContract.java index df8b373db..4402ade36 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/mvp/contract/UserContract.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/mvp/contract/UserContract.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.mvp.contract; import android.app.Activity; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/UserModel.java b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/UserModel.java index 6c79be1f1..d7e2fdd9e 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/UserModel.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/UserModel.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.mvp.model; import android.arch.lifecycle.Lifecycle; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/Api.java b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/Api.java index 7411b82f5..f0ec5d131 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/Api.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/Api.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.mvp.model.api; /** diff --git a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/cache/CommonCache.java b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/cache/CommonCache.java index ce9aba9f8..28967d7cc 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/cache/CommonCache.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/cache/CommonCache.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.mvp.model.api.cache; import java.util.List; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/service/CommonService.java b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/service/CommonService.java index 19d426ddb..cbd1d31d2 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/service/CommonService.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/service/CommonService.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.mvp.model.api.service; /** diff --git a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/service/UserService.java b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/service/UserService.java index 6fc8f01ba..f2fefabe7 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/service/UserService.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/api/service/UserService.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.mvp.model.api.service; import java.util.List; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/entity/BaseJson.java b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/entity/BaseJson.java index cc64e4fe2..c61631237 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/entity/BaseJson.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/entity/BaseJson.java @@ -1,12 +1,12 @@ -/** +/* * Copyright 2017 JessYan - *

+ * * 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 - *

+ * + * 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. diff --git a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/entity/User.java b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/entity/User.java index ff6b724a9..3064a541d 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/entity/User.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/mvp/model/entity/User.java @@ -1,21 +1,29 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.mvp.model.entity; - +/** + * ================================================ + * User 实体类 + *

+ * Created by JessYan on 04/09/2016 17:14 + * Contact me + * Follow me + * ================================================ + */ public class User { private final int id; private final String login; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/mvp/presenter/UserPresenter.java b/app/src/main/java/me/jessyan/mvparms/demo/mvp/presenter/UserPresenter.java index 1b876c2e6..801428bd1 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/mvp/presenter/UserPresenter.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/mvp/presenter/UserPresenter.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.mvp.presenter; import android.app.Application; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/activity/UserActivity.java b/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/activity/UserActivity.java index b534b3815..ede6f6aea 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/activity/UserActivity.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/activity/UserActivity.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.mvp.ui.activity; import android.app.Activity; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/adapter/UserAdapter.java b/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/adapter/UserAdapter.java index 056eb6a9e..21810ec85 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/adapter/UserAdapter.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/adapter/UserAdapter.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.mvp.ui.adapter; import android.view.View; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/holder/UserItemHolder.java b/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/holder/UserItemHolder.java index 0941be454..8b7e7e50e 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/holder/UserItemHolder.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/holder/UserItemHolder.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.mvp.ui.holder; import android.view.View; diff --git a/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/widget/AutoCardView.java b/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/widget/AutoCardView.java index 778aab612..14a53b3ea 100644 --- a/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/widget/AutoCardView.java +++ b/app/src/main/java/me/jessyan/mvparms/demo/mvp/ui/widget/AutoCardView.java @@ -1,18 +1,18 @@ -/** - * Copyright 2017 JessYan - * - * 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. - */ +/* + * Copyright 2017 JessYan + * + * 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 me.jessyan.mvparms.demo.mvp.ui.widget; import android.content.Context;