Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View koesie10's full-sized avatar

Koen Vlaswinkel koesie10

View GitHub Profile
@koesie10
koesie10 / ApiModule.java
Created October 3, 2015 07:40
Retrofit 1 error handling behaviour in Retrofit 2
// Dagger 1 example
@Module(
complete = false,
library = true
)
public final class ApiModule {
@Provides
@Singleton
Retrofit provideRetrofit(Gson gson, Application app) {
return new Retrofit.Builder()
<?php
class OverloadingClassFromHell
{
private $data = array();
public function __set($name, $value)
{
$this->data[$name] = $value;
}