Showing 83 of 83 total issues
Identical blocks of code found in 2 locations. Consider refactoring. Open
} else { view.displayError(context.getString(R.string.some_error_occured)) view.hideLoading() view.destroy() }
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
private fun setDaggerComponent(component: CameraActivityComponent) { this.component = component this.component?.inject(this) }
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
private fun setDaggerComponent(component: LandingActivityComponent) { this.component = component this.component?.inject(this) }
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
@Query("select * from products where id = :productId") fun loadProduct(productId: Int): LiveData<ProductEntity?>?
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
@Query("SELECT * FROM comments where productId = :productId") fun loadCommentsSync(productId: Int): List<CommentEntity?>?
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
val notifBody = if (body.trim().isEmpty()) context.getString(R.string .default_noification_body) else body
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
@Insert(onConflict = OnConflictStrategy.REPLACE) fun insertAll(products: List<ProductEntity>?)
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
val notifTitle = if (title.trim().isEmpty()) context.getString(R.string .default_noification_title) else title
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
@Insert(onConflict = OnConflictStrategy.REPLACE) fun insertAll(products: List<CommentEntity>?)
- Read upRead up
Similar blocks of code found in 5 locations. Consider refactoring. Open
private val repoName by lazy { itemView.findViewById<TextView>(R.id.tv_repo_name) }
- Read upRead up
Similar blocks of code found in 5 locations. Consider refactoring. Open
private val repoDesc by lazy { itemView.findViewById<TextView>(R.id.tv_repo_desc) }
- Read upRead up
Similar blocks of code found in 5 locations. Consider refactoring. Open
private val repoLayout by lazy { itemView.findViewById<RelativeLayout>(R.id.rl_repo_holder) }
- Read upRead up
Similar blocks of code found in 5 locations. Consider refactoring. Open
private val repoStars by lazy { itemView.findViewById<TextView>(R.id.tv_repo_stars) }
- Read upRead up
Similar blocks of code found in 5 locations. Consider refactoring. Open
private val repoLastUpdated by lazy { itemView.findViewById<TextView>(R.id.tv_last_updated) }
- Read upRead up
Similar blocks of code found in 6 locations. Consider refactoring. Open
val progressBar: ProgressBar by lazy { findViewById<ProgressBar>(R.id.progress_bar) }
- Read upRead up
Similar blocks of code found in 6 locations. Consider refactoring. Open
val btnRetrofit: Button by lazy { findViewById<Button>(R.id.btn_load_retrofit) }
- Read upRead up
Similar blocks of code found in 6 locations. Consider refactoring. Open
val repoList: RecyclerView by lazy { findViewById<RecyclerView>(R.id.rv_repo_list) }
- Read upRead up
Similar blocks of code found in 6 locations. Consider refactoring. Open
val btnVolley: Button by lazy { findViewById<Button>(R.id.btn_load_volley) }
- Read upRead up
Similar blocks of code found in 6 locations. Consider refactoring. Open
val etUsername: EditText by lazy { findViewById<EditText>(R.id.et_github_username) }
- Read upRead up
Similar blocks of code found in 6 locations. Consider refactoring. Open
val btnOkhttp: Button by lazy { findViewById<Button>(R.id.btn_load_okhttp) }
- Read upRead up